CustomProp Method

Returns a CustomProp object that corresponds to a custom property by its index in the custom property collection of the shape.

Applies to: Shape object

Syntax

[[Set] customPropRet =] object.CustomProp ( index )

The CustomProp method syntax has these parts:

Part Description
object Required. An expression that returns an object in the Applies to list.
index Required. An expression that returns a Long value. The index of the custom property in the custom property collection of the shape.
customPropRet Optional. A CustomProp type variable.

Remarks

If index is less than 1 or greater than the number of custom properties of the shape, the CustomProp method returns Nothing. To find out the number of custom properties of the shape, use the CustomPropsNum method.

 

See Also

AddCustomProp method, CustomPropsNum method, RemoveCustomProp method, CustomProp object