Düzenle

Aracılığıyla paylaş


Shape.CharCount property (Visio)

Returns the number of characters in an object. Read-only.

Syntax

expression. CharCount

expression A variable that represents a Shape object.

Return value

Long

Remarks

For a Shape object, the CharCount property returns the number of characters in the shape's text. For a Characters object, the CharCount property returns the number of characters in the text range represented by that object.

The value returned by the CharCount property includes the expanded number of characters for any fields in the object's text. For example, if the text contains a field that displays the file name of a drawing, the CharCount property includes the number of characters in the file name, rather than the one-character escape sequence used to represent a field in the Text property of a Shape object.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.