CharactersNum Method

Returns the number of character blocks associated with the shape's text.

Applies to: Shape object

Syntax

[[Let] countRet = ] object.CharactersNum ()

The CharactersNum method syntax has these parts:

Part Description
object

Required. An expression that returns an instance of the Shape object.

countRet Optional. A Character type variable.

Remarks

If the shape doesn't contain text, it doesn't contain any character block, so in this case the CharactersNum method returns 0.

 

See Also

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