Object Model Reference : Classes : T : TextCharacters : Properties : TextCharacters.Count |
Property Count As Long
Member of TextCharacters
The Count property returns the number of characters in a collection, including paragraph breaks.
The Count property returns a read-only value.
The following VBA example creates paragraph text and then displays the number of characters it contains.
Sub Test() |
Dim s As Shape |
Dim d As Document |
Dim t As Text |
Set d = CreateDocument |
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 8, 8, _ |
"This is a test.") |
Set t = s.Text |
MsgBox t.Story.Characters.Count |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.