Removes the character block with the specified index from the character block collection of the shape, and returns the number of remaining character blocks.
Applies to: Shape object
[[Let] countRet =] object.RemoveCharacter ( index ) |
The RemoveCharacter 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 character block to be deleted. |
indexRet | Optional. A Long type variable. |
If index is less than 1 or greater than the number of character blocks of the shape, the RemoveCharacter method doesn't delete anything and returns the current number of character blocks of the shape. To find out the number of character blocks of the shape, use the CharactersNum method.