RemoveCharacter Method

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

Syntax

[[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.

Remarks

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.

 

See Also

Character method, CharactersNum method, GetCharacterIndex method, SetCharColor method, SetCharFont method, SetCharHyperlink method, SetCharLanguage method, SetCharPos method, SetCharSize method, SetCharSpacing method, SetCharStyle method, Character object