Type | Description | |||
Boolean | A Boolean expression that indicates whether the property displays a check box. |
For instance, the following screen shot lists the boolean properties on top, using True/False values, while the second screen shot shows the same properties displaying a checkbox instead True/False values.
The following VB sample changes the DisplayCheck property for properties of Boolean type:
Private Sub PropertiesList1_IncludeProperty(ByVal Property As EXPROPERTIESLISTLibCtl.IProperty, Cancel As Boolean) Property.DisplaySlider = InStr(1, Property.Name, "transparent", vbTextCompare) > 0 If (Not Property.DisplaySlider) Then Property.DisplayDate = VarType(Property.Value) = vbDate If (Not Property.DisplayDate) Then Property.DisplayCheck = VarType(Property.Value) = vbBoolean If (Not Property.DisplayCheck) Then Property.DisplayColor = InStr(1, Property.Name, "color", vbTextCompare) > 0 End If End If End If End Sub