Paragraph Object
Description
Represents a single paragraph in a selection, range, or document. The Paragraph object is a member of the Paragraphs collection. The Paragraphs collection includes all the paragraphs in a selection, range, or document.
Using the Paragraph Object
Use Paragraphs(index), where index is the index number, to return a single Paragraph object. The following example right aligns the first paragraph in the active document.
ActiveDocument.Paragraphs(1).Alignment = wdAlignParagraphRight
Use the Add, InsertParagraph, InsertParagraphAfter, or InsertParagraphBefore method to add a new, blank paragraph to a document. The following example adds a paragraph mark before the first paragraph in the selection.
Selection.Paragraphs.Add Range:=Selection.Paragraphs(1).Range
The following example also adds a paragraph mark before the first paragraph in the selection.
Selection.Paragraphs(1).Range.InsertParagraphBefore
Properties
Alignment property, Application property, Borders property, Creator property, DropCap property, FirstLineIndent property, Format property, Hyphenation property, KeepTogether property, KeepWithNext property, LeftIndent property, LineSpacing property, LineSpacingRule property, NoLineNumber property, OutlineLevel property, PageBreakBefore property, Parent property, Range property, RightIndent property, Shading property, SpaceAfter property, SpaceBefore property, Style property, TabStops property, WidowControl property.
Methods
CloseUp method, Indent method, Next method, OpenOrCloseUp method, OpenUp method, Outdent method, OutlineDemote method, OutlineDemoteToBody method, OutlinePromote method, Previous method, Reset method, Space1 method, Space15 method, Space2 method, TabHangingIndent method, TabIndent method.
See Also
ParagraphFormat object.