Outline 属性

       

如果为 True,字体设置为镂空格式。返回值可为 TrueFalsewdUndefinedTrueFalse 都有可能的情况下返回该值)。可以设为 TrueFalsewdToggleLong 类型,可读写。

expression.Outline

expression   必需。该表达式返回一个 Font 对象。

示例

本示例为活动文档前三个词设置镂空字体格式。

Set myRange = ActiveDocument.Range(Start:= _
    ActiveDocument.Words(1).Start, _
    End:=ActiveDocument.Words(3).End)
myRange.Font.Outline = True

本示例为选定文本切换镂空格式。

Selection.Font.Outline = wdToggle

当选定内容中的部分文本应用了镂空格式时,本示例清除选定内容中的镂空字体格式。

Set myFont = Selection.Font
If myFont.Outline = wdUndefined Then
    myFont.Outline = False
End If