![]() |
![]() |
TextWords.Count
Property Count As Long
Member of TextWords
The Count property returns the number of words in the collection.
The Count property returns a read-only value.
The following code example creates paragraph text and displays the number of words:
Sub Test() Dim t As Text Dim s As Shape Dim d As Document Set d = CreateDocument Set s = d.ActiveLayer.CreateParagraphText(2, 2, 8, 8, _ "This is an example for the TextWords Class") Set t = s.Text MsgBox "The total number of words is " & t.Story.Words.Count End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.