如果为 True,则设置字体或区域的格式为倾斜。该属性返回值为 True、False 或 dUndefined(当返回值既可为 True 也可为 False 时取该值)。该属性值可设置为 True、False 或 wdToggle。Long 类型,可读写。
本示例将活动文档的第一个单词的格式设置为倾斜。
ActiveDocument.Words(1).Italic = True
本示例检查所选内容中的倾斜格式并清除在所选内容中存在的倾斜格式。
If Selection.Type = wdSelectionNormal Then
mySel = Selection.Font.Italic
If mySel = wdUndefined or mySel = True Then
MsgBox "There's italic text in selection. " _
& "Click OK to remove."
Selection.Font.Italic = False
Else
MsgBox "No italic text in the selection."
End If
Else
MsgBox "You need to select some text."
End If