Object Model Reference : Classes : T : TextRange : Properties : TextRange.Italic |
Property Italic As Boolean
Member of TextRange
The Italic propertey returns or specifies whether italics are applied to a text range.
The following VBA example applies italics to all text in the paragraph.
Sub Test() |
Dim t As Text |
Dim s As Shape |
Dim d As Document |
Set d = CreateDocument |
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 8, 8, "This is an example.") |
Set t = s.Text |
t.Story.Italic = True |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.