Bookmark.WholeStory Yöntem

Genişleyen bir Bookmark Yazının tamamını içerecek şekilde denetim.

Ad alanı:  Microsoft.Office.Tools.Word
Derleme:  Microsoft.Office.Tools.Word (Microsoft.Office.Tools.Word.dll içinde)

Sözdizimi

'Bildirim
Sub WholeStory
void WholeStory()

Örnekler

Aşağıdaki kod örneği, metni belgeye ekler ve sonra ekler bir Bookmark metin.Kullanarak WholeStory yöntemi, bütün belgeyi katmak için yer işareti genişletir.

Bu örnek, belge düzeyinde özelleştirme içindir

Private Sub BookmarkWholeStory()

    Me.Paragraphs(1).Range.InsertParagraphBefore()
    Me.Paragraphs(1).Range.InsertParagraphBefore()
    Me.Paragraphs(1).Range.Text = "This is the first paragraph."

    Dim Bookmark1 As Microsoft.Office.Tools.Word.Bookmark = _
        Me.Controls.AddBookmark(Me.Paragraphs(2).Range, "Bookmark1")

    Bookmark1.Text = "This is sample bookmark text."
    Bookmark1.WholeStory()
    MessageBox.Show("Bookmark1 starts at " & _
        Bookmark1.Start.ToString)

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

    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
        this.Controls.AddBookmark(this.Paragraphs[2].Range,
        "bookmark1");
    bookmark1.Text = "This is sample bookmark text.";
    bookmark1.WholeStory();
    MessageBox.Show("bookmark1 starts at " + bookmark1.Start.ToString());
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

Bookmark Arabirim

Microsoft.Office.Tools.Word Ad Alanı