Object Model Reference : Classes : T : TextRange : Properties : TextRange.Outline |
Property Outline As Outline
Member of TextRange
The Outline property returns the outline (or Outline object) applied to a text range.
The Outline property returns a read-only value.
The following VBA example changes the width of the last word of the paragraph to 2 inches.
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.Words.Last.Outline.Width = 2 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.