Previous Document Next Document

Object Model Reference : Classes : T : TextRange : Properties : TextRange.Characters


TextRange.Characters

Property Characters As TextCharacters

Description

Member of TextRange

The Characters property returns all the characters in a text range.

The Characters property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.