Previous Document Next Document

Object Model Reference : Classes : T : TextCharacters : Properties : TextCharacters.Count


TextCharacters.Count

Property Count As Long

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.