Partager via


Paragraphs Interface

A collection of Paragraph objects in a selection, range, or document.

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

Syntax

'Declaration
<GuidAttribute("00020958-0000-0000-C000-000000000046")> _
Public Interface Paragraphs _
    Inherits IEnumerable
'Usage
Dim instance As Paragraphs
[GuidAttribute("00020958-0000-0000-C000-000000000046")]
public interface Paragraphs : IEnumerable

Remarks

Use the Paragraphs property to return the Paragraphs collection.

Use the Add, InsertParagraph, InsertParagraphAfter, or InsertParagraphBefore method to add a new paragraph to a document.

Use Paragraphs(index), where index is the index number, to return a single Paragraph object.

The Count property for this collection in a document returns the number of items in the main story only. To count items in other stories use the collection with the Range object.

See Also

Reference

Paragraphs Members

Microsoft.Office.Interop.Word Namespace