RemoveCustomProp Method

Removes a custom property with the specified index from the custom property collection of the shape, and returns the number of remaining custom properties.

Applies to: Shape object

Syntax

[[Let] countRet =] object.RemoveCustomProp ( index )

The RemoveCustomProp method syntax has these parts:

Part Description
object Required. An expression that returns a Shape object.
index Required. An expression that returns a Long value. The index of the custom property to be deleted in the custom property collection of the shape.
countRet Optional. A Long type variable.

Remarks

If index is less than 1 or greater than the number of custom properties of the shape, the RemoveCustomProp method doesn't delete anything and returns the current number of custom properties of the shape. To find out the number of custom properties of the shape, use the CustomPropsNum method.

 

See Also

AddCustomProp method, CustomProp method, CustomPropsNum method, CustomProp object