Object Model Reference : Classes : T : TextRange : Properties : TextRange.Characters |
Property Characters As TextCharacters
Member of TextRange
The Characters property returns all the characters in a text range.
The Characters property returns a read-only value.
The following VBA example applies bold formatting to all the characters in the paragraph-text object.
Sub Test() |
Dim d As Document |
Dim s As Shape |
Dim t As Text |
Set d = CreateDocument |
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 4, 4, "This is an example.") |
Set t = s.Text |
t.Story.Characters.All.Bold = True |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.