Removes a user-defined action with the specified index from the user-defined action collection of the shape, and returns the number of remaining actions.
Applies to: Shape object
[[Let] countRet = ] object.RemoveAction ( index ) |
The RemoveAction 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 user-defined action to be deleted. |
actionRet | Optional. An Action type variable. |
If index is less than 1 or greater than the number of user-defined actions of the shape, the RemoveAction method doesn't delete anything and returns the number of user-defined actions of the shape. To find out the number of user-defined actions of the shape, use the ActionsNum method.
See Also |
Action method, ActionsNum method, AddAction method, RemoveAction method |