property Property.Option(Name as OptionEnum) as Variant
Specifies an option for the property's editor.

TypeDescription
Name as OptionEnum An OptionEnum expression that indicates the option being changed.
Variant A Variant value that indicates the option's newly value.
Use the Option property to change a particular option for a specified entry/property. If no option is specified for the current entry, the Option property of the control indicates the default options. The Option property applies the options to all editors, while the Option property of Property object may specify different options for different entries in the control. For instance, you can display a filter for some EditFile entries, and other filters for other EditFile entries in the same control.

In conclusion, you can specify options for the editors as follows:

The following VB sample adds a custom EditDate editor that uses Romanian calendar:

With PropertiesList1
    With .Add("Date", Date, EditDate)
	.Option(exDateTodayCaption) = "Azi"
	.Option(exDateMonths) = "Ianuarie Februarie Martie Aprilie Mai Iunie Iulie August Septembrie Octombrie Decembrie"
	.Option(exDateWeekDays) = "D L M M J V S"
	.Option(exDateFirstWeekDay) = 1
    Wnd With
End With

The following VB sample adds a custom EditFile editor with INI filter:

With PropertiesList1
    With .Add("INI", "c:\temp\test.ini", EditFile, "Selects a file", "Custom")
	.Option(exEditFileFilter) = "INI Files|*.ini;*.init|All (*.*)|*.*"
	.Option(exEditFileTitle) = "Select an INI file"
    End With
End With