该属性返回或设置一个 WdColorIndex 常量,代表文档中批注的颜色。可读写。
WdColorIndex 可以是下列 WdColorIndex 常量之一: |
wdAuto |
wdBlack |
wdBlue |
wdBrightGreen |
wdByAuthor |
wdDarkBlue |
wdDarkRed |
wdDarkYellow |
wdGray25 |
wdGray50 |
wdGreen |
wdNoHighlight |
wdPink |
wdRed |
wdTeal |
wdTurquoise |
wdViolet |
wdWhite |
wdYellow |
expression.CommentsColor
expression 必需。该表达式返回“应用于”列表中的一个对象。
本示例设置 Microsoft Word 的全局选项,根据批注的作者设置批注的颜色。
Sub ColorCodeComments()
Options.CommentsColor = wdByAuthor
End Sub