ParagraphFormat

ParagraphFormat

Overview

ParagraphFormat is a class in Aspose.Words FOSS for .NET. Inherits from: IBorderAttrSource, IShadingAttrSource.

Represents all the formatting for a paragraph.

This class provides 1 method for working with ParagraphFormat objects in .NET programs. Available methods include: ClearFormatting. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: AddSpaceBetweenFarEastAndAlpha, AddSpaceBetweenFarEastAndDigit, Alignment, BaselineAlignment, Bidi, Borders, and 36 more.

Properties

NameTypeAccessDescription
AlignmentParagraphAlignmentRead/WriteGets or sets text alignment for the paragraph.
BaselineAlignmentBaselineAlignmentRead/WriteGets or sets fonts vertical position on a line.
NoSpaceBetweenParagraphsOfSameStyleboolRead/WriteWhen true, SpaceBefore and SpaceAfter will be ignored between the paragraphs of the same style.
KeepTogetherboolRead/WriteTrue if all lines in the paragraph are to remain on the same page.
KeepWithNextboolRead/WriteTrue if the paragraph is to remains on the same page as the paragraph that follows it.
PageBreakBeforeboolRead/WriteTrue if a page break is forced before the paragraph.
SuppressLineNumbersboolRead/WriteSpecifies whether the current paragraph’s lines should be exempted from line numbering which is applied in the parent section.
SuppressAutoHyphensboolRead/WriteSpecifies whether the current paragraph should be exempted from any hyphenation which is applied in the document settings.
WidowControlboolRead/WriteTrue if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.
AddSpaceBetweenFarEastAndAlphaboolRead/WriteGets or sets a flag indicating whether inter-character spacing is automatically adjusted between regions of Latin text and regions of East Asian text in the current paragraph.
AddSpaceBetweenFarEastAndDigitboolRead/WriteGets or sets a flag indicating whether inter-character spacing is automatically adjusted between regions of numbers and regions of East Asian text in the current paragraph.
FarEastLineBreakControlboolRead/WriteGets or sets a flag indicating whether East Asian line-breaking rules are applied to the current paragraph.
WordWrapboolRead/WriteIf this property is false, Latin text in the middle of a word can be wrapped for the current paragraph.
HangingPunctuationboolRead/WriteGets or sets a flag indicating whether hanging punctuation is enabled for the current paragraph.
BidiboolRead/WriteGets or sets whether this is a right-to-left paragraph.
LeftIndentdoubleRead/WriteGets or sets the value (in points) that represents the left indent for paragraph.
CharacterUnitLeftIndentdoubleRead/WriteGets or sets the left indent value (in characters) for the specified paragraphs.
RightIndentdoubleRead/WriteGets or sets the value (in points) that represents the right indent for paragraph.
CharacterUnitRightIndentdoubleRead/WriteGets or sets the right indent value (in characters) for the specified paragraphs.
FirstLineIndentdoubleRead/WriteGets or sets the value (in points) for a first line or hanging indent.
CharacterUnitFirstLineIndentdoubleRead/WriteGets or sets the value (in characters) for the first-line or hanging indent.
SpaceBeforeAutoboolRead/WriteTrue if the amount of spacing before the paragraph is set automatically.
SpaceAfterAutoboolRead/WriteTrue if the amount of spacing after the paragraph is set automatically.
SpaceBeforedoubleRead/WriteGets or sets the amount of spacing (in points) before the paragraph.
LineUnitBeforedoubleRead/WriteGets or sets the amount of spacing (in gridlines) before the paragraphs.
SpaceAfterdoubleRead/WriteGets or sets the amount of spacing (in points) after the paragraph.
LineUnitAfterdoubleRead/WriteGets or sets the amount of spacing (in gridlines) after the paragraphs.
LineSpacingRuleLineSpacingRuleRead/WriteGets or sets the line spacing for the paragraph.
LineSpacingdoubleRead/WriteGets or sets the line spacing (in points) for the paragraph.
MirrorIndentsboolRead/WriteGets or sets a flag indicating whether the left and right indents are of the same width.
IsHeadingboolReadTrue when the paragraph style is one of the built-in Heading styles.
IsListItemboolReadTrue when the paragraph is an item in a bulleted or numbered list.
OutlineLevelOutlineLevelRead/WriteSpecifies the outline level of the paragraph in the document.
LinesToDropintRead/WriteGets or sets the number of lines of the paragraph text used to calculate the drop cap height.
DropCapPositionDropCapPositionRead/WriteGets or sets the position for a drop cap text.
ShadingShadingReadReturns a Shading object that refers to the shading formatting for the paragraph.
BordersBorderCollectionReadGets collection of borders of the paragraph.
StyleStyleRead/WriteGets or sets the paragraph style applied to this formatting.
StyleNamestringRead/WriteGets or sets the name of the paragraph style applied to this formatting.
StyleIdentifierStyleIdentifierRead/WriteGets or sets the locale independent style identifier of the paragraph style applied to this formatting.
SnapToGridboolRead/WriteSpecifies whether the current paragraph should use the document grid lines per page settings when laying out the contents in the paragraph.
TabStopsTabStopCollectionReadGets the collection of custom tab stops defined for this object.

Methods

SignatureDescription
ClearFormatting()Resets to default paragraph formatting.

See Also