property Property.Object as Object

Retrieves the owner object of the property.

TypeDescription
Object An object that's the owner of the property.

The Object property retrieves the owner object of the property. Use the Value property to get the object contained by the property. For instance if a Property object has the ItemCollection property to True, then the Object property retrieves the owner object collection. Also, if a Property object contains is of Variable type, the Object property retrieves the object where the variable belong. Use the PropertyObject property to determine whether the property contains an object. For instance a property of font type is considered as been of object type. You can use the Type property to determine the type of the property.  The following sample shows how to exclude variables of IPictureDisp properties:

Private Sub PropertiesList1_IncludeProperty(ByVal Property As EXPROPERTIESLISTLibCtl.IProperty, Cancel As Boolean)
    If Not (Property.Object Is Nothing) Then
        Cancel = Property.Variable And TypeOf Property.Object Is IPictureDisp
    End If
End Sub