Bookmarks 接口

定义

对象的集合, Bookmark 这些对象代表指定的所选内容、范围或文档中的书签。A collection of Bookmark objects that represent the bookmarks in the specified selection, range, or document.

public interface class Bookmarks : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020967-0000-0000-C000-000000000046")]
public interface Bookmarks : System.Collections.IEnumerable
type Bookmarks = interface
    interface IEnumerable
Public Interface Bookmarks
Implements IEnumerable
属性
实现

注解

使用 Bookmarks 属性返回书签集合。Use the Bookmarks property to return the Bookmarks collection.

使用 Add(String, Object) 方法设置文档中某一范围的书签。Use the Add(String, Object) method to set a bookmark for a range in a document.

使用书签index ),其中 index 是书签名称或索引号,返回单个书签对象。Use Bookmarks(index), where index is the bookmark name or index number, to return a single Bookmark object. 您必须完全匹配拼写 (但不是一定是大小写) 的书签名称。You must exactly match the spelling (but not necessarily the capitalization) of the bookmark name.

索引号表示书签在或对象中的位置 Selection RangeThe index number represents the position of the bookmark in the Selection or Range object. 对于 Document 对象,索引号代表书签在 "书签" 对话框(单击 "名称" 以按字母顺序对书签列表进行排序)的书签列表中的位置。For the Document object, the index number represents the position of the bookmark in the alphabetic list of bookmarks in the Bookmarks dialog box (click Name to sort the list of bookmarks alphabetically).

ShowHidden 属性影响书签集合中的元素数。The ShowHidden property affects the number of elements in the Bookmarks collection. 如果 ShowHiddenTrue,则隐藏的书签包含在 Bookmarks 集合中。If ShowHidden is True, hidden bookmarks are included in the Bookmarks collection.

属性

Application

返回一个 Application object 类型的对象,该对象代表指定对象的创建者。Returns an Application object that represents the creator of the specified object.

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个值,该值指示在其中创建指定对象的应用程序。Returns a value that indicates the application in which the specified object was created.

DefaultSorting

返回或设置显示在书签对话框 (插入菜单) 中的书签名的排序依据选项。Returns or sets the sorting option for bookmark names displayed in the Bookmark dialog box (Insert menu).

Item[Object]

返回集合中的单个对象。Returns an individual object in a collection.

Parent

返回指定对象的父对象。Returns the parent object of the specified object.

ShowHidden

返回或设置一个值,该值指示是否在集合中包含隐藏书签 BookmarksReturns or sets a value that indicates if hidden bookmarks are included in the Bookmarks collection.

方法

Add(String, Object)

向区域中添加书签。Adds a bookmark to a range.

Exists(String)

确定指定的书签是否存在。Determines whether the specified bookmark exists.

GetEnumerator()

适用于