RemoveControlDot Method

Removes a control handle with the specified index from the control handle collection of the shape, and returns the number of remaining control handles.

Applies to: Shape object

Syntax

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

The RemoveControlDot 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 control handle to be deleted in the control handle collection of the shape.
countRet Optional. A Long type variable.

Remarks

If index is less than 1 or greater than the number of control handles of the object shape, the RemoveControlDot method doesn't delete anything and returns the current number of control handles of the shape. To find out the number of control handles of the shape, use the ControlDotsNum method.

 

See Also

AddControlDot method, ControlDot method, ControlDotsNum method, ControlDot object