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)

[GuidAttribute("00020958-0000-0000-C000-000000000046")]
public interface Paragraphs : IEnumerable

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft