全部显示

InsertedTextMark 属性

       

当启用修订功能时(TrackRevisions 属性为 True),返回或设置 Microsoft Word 如何设置插入的文本的格式。如果没有启用修订功能,则忽略此属性。配合 InsertedTextColor 属性使用此属性,可以控制文档中插入文本的外观。WdInsertedTextMark,可读写。

expression.InsertedTextMark

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

说明

如果要在编辑过程中看到插入文本的格式,ShowRevisions 属性必须为 True。如果要在打印文档时,使 Word 使用插入文本的格式,PrintRevisions 属性必须为 True

示例

本示例设置 Word 为插入的文本应用斜体格式。

Options.InsertedTextMark = wdInsertedTextMarkItalic

本示例设置 Word 为插入的文本应用加粗格式(如果尚未将其设置为加粗格式)。

If Options.InsertedTextMark <> wdInsertedTextMarkBold Then
    Options.InsertedTextMark = wdInsertedTextMarkBold
Else
    MsgBox Prompt:="Inserted text is already bold!"
End If