全部显示

UnderlineColor 属性

       

该属性返回或设置指定 Font 对象的下划线的 24 位颜色。该属性可以取任何合法的 WdColor 常量或 Visual Basic 的 RGB 函数返回的值。

expression.UnderlineColor

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

说明

UnderlineColor 属性设为 wdColorAutomatic 会使下划线的颜色重新设置为带有该下划线的文字的颜色。

示例

本示例为活动文档中的第三个单词设置双下划线,并将下划线颜色设为青绿色。

With ActiveDocument.Words(3)
    .Underline = wdUnderlineDouble
    .Font.UnderlineColor = wdColorTurquoise
End With