Bookmarks Interface
A collection of Bookmark objects that represent the bookmarks in the specified selection, range, or document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Public Class ookmarksImplementation
Implements Bookmarks
End Class
Dim ookmarksImplementation1 As New ookmarksImplementation()
Syntax
Public Interface Bookmarks
Inherits IEnumerable
public interface Bookmarks : IEnumerable
public interface class Bookmarks : public IEnumerable
public interface Bookmarks implements IEnumerable
public interface Bookmarks implements IEnumerable
Remarks
Use the Bookmarks property to return the Bookmarks collection.
Use the Add method to set a bookmark for a range in a document.
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.
The index number represents the position of the bookmark in the Selection or Range object. 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).
The ShowHidden property affects the number of elements in the Bookmarks collection. If ShowHidden is True, hidden bookmarks are included in the Bookmarks collection.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Microsoft.Office.Interop.Word Namespace