Determines if an object has a specified property
Supported Platforms: Windows only
(vlax-property-available-p obj prop [check-modify])
Type: VLA-object
An object.
Type: Symbol or String
Name of the property to be checked.
Type: T
If T is specified for this argument, vlax-property-available-p also checks that the property can be modified.
Type: T or nil
T, if the object has the specified property; otherwise nil. If T is specified for the check-modify argument, vlax-property-available-p returns nil if either the property is not available or the property cannot be modified.
The following examples apply to a LightweightPolyline object:
(vlax-property-available-p WhatsMyLine 'Color) T (vlax-property-available-p WhatsMyLine 'center) nil
The following examples apply to a Circle object:
(vlax-property-available-p myCircle 'area) T
Note how supplying the optional third argument changes the result:
(vlax-property-available-p myCircle 'area T) nil
The function returns nil because, although the circle has an “area” property, that property cannot be modified.