property Property.Type as String

Retrieves the property's type.

TypeDescription
String A string expression that represents the property's type.

Use the PropertyObject property to check whether a property is of object type. For instance, the Type property is useful to determine whether a variable is member of a IFontDisp object, using the following statement: typeof Property.Object is IFontDisp. Use the Value property to determine the property's value. It is not recommended using the typeof Property.Value is IFontDisp, because the VB operator typeof  is not able to check the type objects that are set to nothing. Use the SelectedProperty event to find out the selected property. The following sample prints the name and the type of the selected property ( for instance, the sample is useful to find out the type of the property selected, when you need to include or exclude properties using the IncludeProperty event):

Private Sub PropertiesList1_SelChange()
    Debug.Print "You have selected the """ & PropertiesList1.SelectedProperty.Name & """. The type for it is: " & PropertiesList1.SelectedProperty.Type
End Sub