Property Property
Description
Gets/sets a custom property in the collection of properties.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Property( _
ByVal [strName](#) As String _
) As Variant
Parameters
- strName: String name of the custom property to retrieve or set.
Remarks
Any number and any type of objects can be attached to an event using the Property collection.
When adding a custom property, a string name must be given to the custom property. This string name will also be used to retrieve the custom property from the collection.
Example
CustomProperties Sample (Visual Basic): This sample illustrates how to get and set custom properties for an event.
Dim NewEvent As CalendarEvent
Set NewEvent = CalendarControl.DataProvider.CreateEvent
' Add some custom properties
NewEvent.CustomProperties.Property("String Value") = "Hello"
NewEvent.CustomProperties.Property("Numeric") = 500
NewEvent.CustomProperties.Property("Boolean Value") = False
' Retrieve the custom property
Dim nInt As Integer
nInt = NewEvent.CustomProperties.Property("Numeric")
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.