ParagraphFormat ParagraphFormat ParagraphFormat Interface

Definition

Represents all the formatting for a paragraph.

public interface class ParagraphFormat : Microsoft::Office::Interop::Word::_ParagraphFormat
[System.Runtime.InteropServices.Guid("00020953-0000-0000-C000-000000000046")]
public interface ParagraphFormat : Microsoft.Office.Interop.Word._ParagraphFormat
Public Interface ParagraphFormat
Implements _ParagraphFormat
Derived
Attributes
Implements

Remarks

Use the Format property to return the ParagraphFormat object for a paragraph or paragraphs. The ParagraphFormat property returns the ParagraphFormat object for a Selection, Range, Style, Find, or Replacement object.

You can make a standalone copy of an existing ParagraphFormat object by using the Duplicate property.

Properties

AddSpaceBetweenFarEastAndAlpha AddSpaceBetweenFarEastAndAlpha AddSpaceBetweenFarEastAndAlpha

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

(Inherited from _ParagraphFormat)

AddSpaceBetweenFarEastAndDigit AddSpaceBetweenFarEastAndDigit AddSpaceBetweenFarEastAndDigit

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

(Inherited from _ParagraphFormat)

Alignment Alignment Alignment

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

(Inherited from _ParagraphFormat)

Application Application Application

Returns an Application object that represents the Microsoft Word application.

(Inherited from _ParagraphFormat)

AutoAdjustRightIndent AutoAdjustRightIndent AutoAdjustRightIndent

True 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.

(Inherited from _ParagraphFormat)

BaseLineAlignment BaseLineAlignment BaseLineAlignment

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

(Inherited from _ParagraphFormat)

Borders Borders Borders

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

(Inherited from _ParagraphFormat)

CharacterUnitFirstLineIndent CharacterUnitFirstLineIndent CharacterUnitFirstLineIndent

Returns or sets the value (in characters) for a first-line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent.

(Inherited from _ParagraphFormat)

CharacterUnitLeftIndent CharacterUnitLeftIndent CharacterUnitLeftIndent

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

(Inherited from _ParagraphFormat)

CharacterUnitRightIndent CharacterUnitRightIndent CharacterUnitRightIndent

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

(Inherited from _ParagraphFormat)

CollapsedByDefault CollapsedByDefault CollapsedByDefault

Returns or sets whether the specified paragraph format is collapsed by default. Read-write Integer (int in C#).

(Inherited from _ParagraphFormat)

Creator Creator Creator

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

(Inherited from _ParagraphFormat)

DisableLineHeightGrid DisableLineHeightGrid DisableLineHeightGrid

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

(Inherited from _ParagraphFormat)

Duplicate Duplicate Duplicate

Returns a read-only _ParagraphFormat object that represents the paragraph formatting of the specified paragraph.

(Inherited from _ParagraphFormat)

FarEastLineBreakControl FarEastLineBreakControl FarEastLineBreakControl

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

(Inherited from _ParagraphFormat)

FirstLineIndent FirstLineIndent FirstLineIndent

Returns or sets the value (in points) for a first line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent.

(Inherited from _ParagraphFormat)

HalfWidthPunctuationOnTopOfLine HalfWidthPunctuationOnTopOfLine HalfWidthPunctuationOnTopOfLine

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

(Inherited from _ParagraphFormat)

HangingPunctuation HangingPunctuation HangingPunctuation

True if hanging punctuation is enabled for the specified paragraphs.

(Inherited from _ParagraphFormat)

Hyphenation Hyphenation Hyphenation

True if the specified paragraphs are included in automatic hyphenation. False if the specified paragraphs are to be excluded from automatic hyphenation. Can be True, False or wdUndefined.

(Inherited from _ParagraphFormat)

KeepTogether KeepTogether KeepTogether

True if all lines in the specified paragraphs remain on the same page when Microsoft Word repaginates the document. Can be True, False, or wdUndefined.

(Inherited from _ParagraphFormat)

KeepWithNext KeepWithNext KeepWithNext

True if the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document. Can be True, False, or wdUndefined.

(Inherited from _ParagraphFormat)

LeftIndent LeftIndent LeftIndent

Returns or sets a Single that represents the left indent value (in points) for the specified paragraphs.

(Inherited from _ParagraphFormat)

LineSpacing LineSpacing LineSpacing

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

(Inherited from _ParagraphFormat)

LineSpacingRule LineSpacingRule LineSpacingRule

Returns or sets the line spacing for the specified paragraphs.

(Inherited from _ParagraphFormat)

LineUnitAfter LineUnitAfter LineUnitAfter

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

(Inherited from _ParagraphFormat)

LineUnitBefore LineUnitBefore LineUnitBefore

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

(Inherited from _ParagraphFormat)

MirrorIndents MirrorIndents MirrorIndents

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

(Inherited from _ParagraphFormat)

NoLineNumber NoLineNumber NoLineNumber

True if line numbers are repressed for the specified paragraphs. Can be True, False, or wdUndefined.

(Inherited from _ParagraphFormat)

OutlineLevel OutlineLevel OutlineLevel

Returns or sets the outline level for the specified paragraphs.

(Inherited from _ParagraphFormat)

PageBreakBefore PageBreakBefore PageBreakBefore

True if a page break is forced before the specified paragraphs. Can be True, False, or wdUndefined.

(Inherited from _ParagraphFormat)

Parent Parent Parent

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

(Inherited from _ParagraphFormat)

ReadingOrder ReadingOrder ReadingOrder

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

(Inherited from _ParagraphFormat)

RightIndent RightIndent RightIndent

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

(Inherited from _ParagraphFormat)

Shading Shading Shading

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

(Inherited from _ParagraphFormat)

SpaceAfter SpaceAfter SpaceAfter

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

(Inherited from _ParagraphFormat)

SpaceAfterAuto SpaceAfterAuto SpaceAfterAuto

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

(Inherited from _ParagraphFormat)

SpaceBefore SpaceBefore SpaceBefore

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

(Inherited from _ParagraphFormat)

SpaceBeforeAuto SpaceBeforeAuto SpaceBeforeAuto

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

(Inherited from _ParagraphFormat)

Style Style Style

Returns or sets the style for the specified object.

(Inherited from _ParagraphFormat)

TabStops TabStops TabStops

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

(Inherited from _ParagraphFormat)

TextboxTightWrap TextboxTightWrap TextboxTightWrap

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

(Inherited from _ParagraphFormat)

WidowControl WidowControl WidowControl

True if the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Word repaginates the document. Can be True, False or wdUndefined.

(Inherited from _ParagraphFormat)

WordWrap WordWrap WordWrap

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

(Inherited from _ParagraphFormat)

Methods

CloseUp() CloseUp() CloseUp()

Removes any spacing before the specified paragraphs.

(Inherited from _ParagraphFormat)

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

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

(Inherited from _ParagraphFormat)

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

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

(Inherited from _ParagraphFormat)

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).

(Inherited from _ParagraphFormat)

OpenUp() OpenUp() OpenUp()

Sets spacing before the specified paragraphs to 12 points.

(Inherited from _ParagraphFormat)

Reset() Reset() Reset()

Removes manual paragraph formatting (formatting not applied using a style). For example, if you manually right align a paragraph and the underlying style has a different alignment, the Reset method changes the alignment to match the formatting of the underlying style.

(Inherited from _ParagraphFormat)

Space1() Space1() Space1()

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

(Inherited from _ParagraphFormat)

Space15() Space15() Space15()

Formats the specified paragraphs with 1.5-line spacing. The exact spacing is determined by adding 6 points to the font size of the largest character in each paragraph.

(Inherited from _ParagraphFormat)

Space2() Space2() Space2()

Double-spaces the specified paragraphs. The exact spacing is determined by adding 12 points to the font size of the largest character in each paragraph.

(Inherited from _ParagraphFormat)

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

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

(Inherited from _ParagraphFormat)

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

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

(Inherited from _ParagraphFormat)

Applies to