Expand Minimize

Bookmark.Information Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets information about the Bookmark control.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Bookmark_InformationType Information { get; }

Property Value

Type: Microsoft.Office.Tools.Word.Bookmark_InformationType
An object that provides information about the Bookmark control.

The Information property is intended to be used with the following parameter.




One of the WdInformation values that specifies the type of information returned for the bookmark.

If you use the Information property without specifying a parameter, it returns an Bookmark_InformationType object that not intended to be used directly from your code.

The following code example adds a Bookmark control with text to the document and then uses the Information property to display the page number in a message box.

This example is for a document-level customization.

private void BookmarkInformation()
    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
    bookmark1.Text = "This is sample bookmark text.";
    MessageBox.Show("This bookmark is on page " + bookmark1

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft