Document.Paragraphs-Eigenschaft (2007 System)

Aktualisiert: November 2007

Ruft eine Paragraphs-Auflistung ab, die alle Absätze im Dokument darstellt.

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

Syntax

<BrowsableAttribute(False)> _
Public ReadOnly Property Paragraphs As Paragraphs

Dim instance As Document
Dim value As Paragraphs

value = instance.Paragraphs
[BrowsableAttribute(false)]
public Paragraphs Paragraphs { get; }

Eigenschaftenwert

Typ: Microsoft.Office.Interop.Word.Paragraphs

Eine Paragraphs-Auflistung, die alle Absätze im Dokument darstellt.

Beispiele

Im folgenden Codebeispiel wird dem ersten Absatz im Dokument Text hinzugefügt.

Dieses Beispiel bezieht sich auf eine Anpassung auf Dokumentebene.

Private Sub DocumentParagraphs()
    Me.Paragraphs(1).Range.InsertParagraphBefore()
    Me.Paragraphs(1).Range.Text = "This is sample paragraph text."
End Sub 
private void DocumentParagraphs()
{
    this.Paragraphs[1].Range.InsertParagraphBefore();
    this.Paragraphs[1].Range.Text = "This is sample paragraph text.";
}

Berechtigungen

Siehe auch

Referenz

Document-Klasse

Document-Member

Microsoft.Office.Tools.Word-Namespace