Paragraph Paragraph Paragraph Interface

Definition

Represents a single paragraph in a selection, range, or document.

public interface class Paragraph
[System.Runtime.InteropServices.Guid("00020957-0000-0000-C000-000000000046")]
public interface Paragraph
Public Interface Paragraph
Attributes

Remarks

The Paragraph object is a member of the Paragraphs collection. The Paragraphs collection includes all the paragraphs in a selection, range, or document.

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

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

Properties

AddSpaceBetweenFarEastAndAlpha AddSpaceBetweenFarEastAndAlpha AddSpaceBetweenFarEastAndAlpha

Determines if Microsoft Word is set to automatically add spaces between Japanese and Latin text for the specified paragraphs.

AddSpaceBetweenFarEastAndDigit AddSpaceBetweenFarEastAndDigit AddSpaceBetweenFarEastAndDigit

Determines if Microsoft Word is set to automatically add spaces between Japanese text and numbers for the specified paragraphs.

Alignment Alignment Alignment

Returns or sets a WdParagraphAlignment constant that represents the alignment for the specified paragraphs.

Application Application Application

Returns a Application object that represents the Microsoft Word application.

AutoAdjustRightIndent AutoAdjustRightIndent AutoAdjustRightIndent

Determines if Microsoft Word is set to automatically adjust the right indent for the specified paragraphs if you’ve specified a set number of characters per line.

BaseLineAlignment BaseLineAlignment BaseLineAlignment

Returns or sets a WdBaselineAlignment constant that represents the vertical position of fonts on a line.

Borders Borders Borders

Returns a Borders collection that represents all the borders for the specified object.

CharacterUnitFirstLineIndent CharacterUnitFirstLineIndent CharacterUnitFirstLineIndent

Returns or sets the value (in characters) for a first-line or hanging indent.

CharacterUnitLeftIndent CharacterUnitLeftIndent CharacterUnitLeftIndent

Returns or sets the left indent value (in characters) for the specified paragraphs.

CharacterUnitRightIndent CharacterUnitRightIndent CharacterUnitRightIndent

Returns or sets the right indent value (in characters) for the specified paragraphs.

CollapsedState CollapsedState CollapsedState

Returns or sets whether the specified paragraph is currently in a collapsed state. Read-write Boolean (bool in C#).

CollapseHeadingByDefault CollapseHeadingByDefault CollapseHeadingByDefault

Returns or sets whether the specified paragraph is collapsed by default when the document loads. Read-write Boolean (bool in C#).

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

DisableLineHeightGrid DisableLineHeightGrid DisableLineHeightGrid

Determines if Microsoft Word aligns characters in the specified paragraphs to the line grid when a set number of lines per page is specified.

DropCap DropCap DropCap

Returns a DropCap object that represents a dropped capital letter for the specified paragraph.

FarEastLineBreakControl FarEastLineBreakControl FarEastLineBreakControl

Determines if Microsoft Word applies East Asian line-breaking rules to the specified paragraphs.

FirstLineIndent FirstLineIndent FirstLineIndent

Returns or sets the value (in points) for a first line or hanging indent.

Format Format Format

Returns or sets a ParagraphFormat object that represents the formatting of the specified paragraph or paragraphs.

HalfWidthPunctuationOnTopOfLine HalfWidthPunctuationOnTopOfLine HalfWidthPunctuationOnTopOfLine

Determines if Microsoft Word changes punctuation symbols at the beginning of a line to half-width characters for the specified paragraphs.

HangingPunctuation HangingPunctuation HangingPunctuation

Determines if hanging punctuation is enabled for the specified paragraphs.

Hyphenation Hyphenation Hyphenation

Determines if the specified paragraphs are included in automatic hyphenation.

ID ID ID

Returns or sets the identifying label for the specified object when the current document is saved as a Web page.

IsStyleSeparator IsStyleSeparator IsStyleSeparator

Determines if a paragraph contains a special hidden paragraph mark that allows Microsoft Word to appear to join paragraphs of different paragraph styles.

KeepTogether KeepTogether KeepTogether

Determines if all lines in the specified paragraphs remain on the same page when Microsoft Word repaginates the document.

KeepWithNext KeepWithNext KeepWithNext

Determines if the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document.

LeftIndent LeftIndent LeftIndent

Returns or sets a Single that represents the left indent value (in points) for the specified paragraphs, table rows, or HTML division.

LineSpacing LineSpacing LineSpacing

Returns or sets the line spacing (in points) for the specified paragraphs.

LineSpacingRule LineSpacingRule LineSpacingRule

Returns or sets the line spacing for the specified paragraphs.

LineUnitAfter LineUnitAfter LineUnitAfter

Returns or sets the amount of spacing (in gridlines) after the specified paragraphs.

LineUnitBefore LineUnitBefore LineUnitBefore

Returns or sets the amount of spacing (in gridlines) before the specified paragraphs.

ListNumberOriginal[Int16] ListNumberOriginal[Int16] ListNumberOriginal[Int16]

Returns an Integer that represents the original list level for a paragraph. Read-only.

MirrorIndents MirrorIndents MirrorIndents

Returns or sets a Integer that represents whether left and right indents are the same width. Can be True, False, or wdUndefined. Read/write.

NoLineNumber NoLineNumber NoLineNumber

Determines if line numbers are repressed for the specified paragraphs.

OutlineLevel OutlineLevel OutlineLevel

Returns or sets the outline level for the specified paragraphs.

PageBreakBefore PageBreakBefore PageBreakBefore

Determines if a page break is forced before the specified paragraphs.

ParaID ParaID ParaID

Reserved for internal use.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

Range Range Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

ReadingOrder ReadingOrder ReadingOrder

Returns or sets the reading order of the specified paragraphs without changing their alignment.

RightIndent RightIndent RightIndent

Returns or sets the right indent (in points) for the specified paragraphs.

Shading Shading Shading

Returns a Shading object that refers to the shading formatting for the specified object.

SpaceAfter SpaceAfter SpaceAfter

Returns or sets the amount of spacing (in points) after the specified paragraph or text column.

SpaceAfterAuto SpaceAfterAuto SpaceAfterAuto

Determines if Microsoft Word automatically sets the amount of spacing after the specified paragraphs.

SpaceBefore SpaceBefore SpaceBefore

Returns or sets the spacing (in points) before the specified paragraphs.

SpaceBeforeAuto SpaceBeforeAuto SpaceBeforeAuto

Determines if Microsoft Word automatically sets the amount of spacing before the specified paragraphs.

Style Style Style

Returns or sets the style for the specified object.

TabStops TabStops TabStops

Returns or sets a TabStops collection that represents all the custom tab stops for the specified paragraphs.

TextboxTightWrap TextboxTightWrap TextboxTightWrap

Returns or sets a WdTextboxTightWrap constant that represents how tightly text wraps around shapes or text boxes. Read/write.

TextID TextID TextID

Reserved for internal use.

WidowControl WidowControl WidowControl

Determines if the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Microsoft Word repaginates the document.

WordWrap WordWrap WordWrap

Determines if Microsoft Word wraps Latin text in the middle of a word in the specified paragraphs or text frames.

Methods

CloseUp() CloseUp() CloseUp()

Removes any spacing before the specified paragraphs.

Indent() Indent() Indent()

Indents one or more paragraphs by one level.

IndentCharWidth(Int16) IndentCharWidth(Int16) IndentCharWidth(Int16)

Indents one or more paragraphs by a specified number of characters.

IndentFirstLineCharWidth(Int16) IndentFirstLineCharWidth(Int16) IndentFirstLineCharWidth(Int16)

Indents one or more paragraphs by a specified number of characters.

JoinList() JoinList() JoinList()

Joins a list paragraph with the closest list above or below the specified paragraph.

ListAdvanceTo(Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16) ListAdvanceTo(Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16) ListAdvanceTo(Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16)

Sets the list levels for a paragraph in a list.

Next(Object) Next(Object) Next(Object)

Returns a Paragraph object that represents the next paragraph.

OpenOrCloseUp() OpenOrCloseUp() OpenOrCloseUp()

If spacing before the specified paragraphs is 0 (zero), this method sets spacing to 12 points. If spacing before the paragraphs is greater than 0 (zero), this method sets spacing to 0 (zero).

OpenUp() OpenUp() OpenUp()

Sets spacing before the specified paragraphs to 12 points.

Outdent() Outdent() Outdent()

Removes one level of indent for one or more paragraphs.

OutlineDemote() OutlineDemote() OutlineDemote()

Applies the next heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs.

OutlineDemoteToBody() OutlineDemoteToBody() OutlineDemoteToBody()

Demotes the specified paragraph or paragraphs to body text by applying the Normal style.

OutlinePromote() OutlinePromote() OutlinePromote()

Applies the previous heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs.

Previous(Object) Previous(Object) Previous(Object)

Returns the previous paragraph as a Paragraph object.

Reset() Reset() Reset()

Removes manual paragraph formatting (formatting not applied using a style).

ResetAdvanceTo() ResetAdvanceTo() ResetAdvanceTo()

Resets a paragraph that uses custom list levels to the original level settings.

SelectNumber() SelectNumber() SelectNumber()

Selects the number or bullet in a list.

SeparateList() SeparateList() SeparateList()

Separates a list into two separate lists. For numbered lists, the new list restarts numbering at the starting number, usually 1.

Space1() Space1() Space1()

Single-spaces the specified paragraphs. The exact spacing is determined by the font size of the largest characters in each paragraph.

Space15() Space15() Space15()

Formats the specified paragraphs with 1.5-line spacing.

Space2() Space2() Space2()

Double-spaces the specified paragraphs.

TabHangingIndent(Int16) TabHangingIndent(Int16) TabHangingIndent(Int16)

Sets a hanging indent to a specified number of tab stops.

TabIndent(Int16) TabIndent(Int16) TabIndent(Int16)

Sets the left indent for the specified paragraphs to a specified number of tab stops.

Applies to