Export (0) Print
Expand All
Expand Minimize

Bookmark.WholeStory Method

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

Expands a Bookmark control to include the entire story.

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

void WholeStory()

The following code example adds text to the document and then adds a Bookmark with text. Using the WholeStory method, it expands the bookmark to include the entire document.

This example is for a document-level customization.

private void BookmarkWholeStory()
    this.Paragraphs[1].Range.Text = "This is the first paragraph.";

    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
    bookmark1.Text = "This is sample bookmark text.";
    MessageBox.Show("bookmark1 starts at " + bookmark1.Start.ToString());

© 2014 Microsoft