Empty 属性

       

如果属性值为 True,则指定书签为空。空书签可标记位置(折叠所选内容),不标记任何文本。Boolean 类型,只读。

注意   如果指定书签不存在,将导致出错。可用 Exists 属性来确定该书签是否存在。

示例

本示例查看名为“temp”的书签是否存在和是否为空。

If ActiveDocument.Bookmarks.Exists("temp") = True Then
    If ActiveDocument.Bookmarks("temp").Empty = True Then _
    MsgBox "The Temp bookmark is empty"
End If