Aracılığıyla paylaş


Bookmark.Paragraphs Özellik

Alır bir Microsoft.Office.Interop.Word.Paragraphs bütün paragrafların temsil eden bir koleksiyon Bookmark denetim.

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

Sözdizimi

'Bildirim
ReadOnly Property Paragraphs As Paragraphs
Paragraphs Paragraphs { get; }

Özellik Değeri

Tür: Microsoft.Office.Interop.Word.Paragraphs
A Microsoft.Office.Interop.Word.Paragraphs bütün paragrafların temsil eden bir koleksiyon Bookmark denetim.

Örnekler

Aşağıdaki kod örneği ekler bir Bookmark denetimi ile ilk paragrafa metin eklenir ve metnin çift aralıklı satırlar için paragraf değiştirir.

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

Private Sub BookmarkParagraphs()

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

    Bookmark1.Text = "This example inserts some sample " _
        & "bookmark text" & " and will then set the line" _
        & "spacing of the bookmark" & " to double space."
    Bookmark1.InsertAfter(" This is text inserted after " _
        & "the bookmark")
    Bookmark1.Paragraphs.LineSpacingRule = Word.WdLineSpacing _
        .wdLineSpaceDouble

End Sub
private void BookmarkParagraphs()
{
    this.Paragraphs[1].Range.InsertParagraphBefore();

    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
        this.Controls.AddBookmark(this.Paragraphs[1].Range,
        "bookmark1");

    bookmark1.Text = "This example inserts some sample bookmark text" +
        " and will then set the line spacing of the bookmark" +
        " to double space.";
    bookmark1.InsertAfter(" This is text inserted after the bookmark");
    bookmark1.Paragraphs.LineSpacingRule = Word.WdLineSpacing
        .wdLineSpaceDouble;
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

Bookmark Arabirim

Microsoft.Office.Tools.Word Ad Alanı