Object Model Reference : Classes : T : TextFrames : Properties : TextFrames.Range |
Property Range(Index As Long, [Count As Long = 1]) As TextRange
Member of TextFrames
The Range property returns a text range (or TextRange) object containing specified frames.
The Range property returns a read-only value.
Parameter
|
Description
|
Index
|
Specifies the preset placeholder that uniquely identifies each member of the TextFrames collection
|
Count
|
Specifies the number of frames. This parameter is optional, and its default value is 1.
|
The following VBA example links frames of paragraph text, applying bold formatting to the text in the second frame.
Sub Test() |
Dim d As Document |
Dim s As Shape |
Dim s1 As Shape |
Dim s2 As Shape |
Dim t As Text |
Set d = CreateDocument |
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 5, 5, String$(750, "Z")) |
Set s1 = d.ActiveLayer.CreateParagraphText(5, 5, 8, 8) |
Set s2 = d.ActiveLayer.CreateParagraphText(8, 8, 10, 10) |
Set t = s.Text |
' Link the frames together. |
t.Frame.LinkTo s1 |
s1.Text.Frame.LinkTo s2 |
t.Frames.Range(2).Bold = True |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.