Click or drag to resize
ParagraphFormat Class
Represents a set of paragraph formatting properties which shall be applied to the contents of the parent paragraph.
Inheritance Hierarchy

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1213
Syntax
public sealed class ParagraphFormat : Format

The ParagraphFormat type exposes the following members.

Constructors
  NameDescription
Public methodParagraphFormat
Initializes a new instance of the ParagraphFormat class.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether first and second ParagraphFormats are equal.
Public operatorStatic memberInequality
Determines whether first and second ParagraphFormats are not equal.
Top
Properties
  NameDescription
Public propertyAlignment
Gets or sets the text alignment for the paragraph.
Public propertyBackgroundColor
Gets or sets the paragraph background color.
Public propertyCode exampleBorders
Gets the paragraph borders.
Public propertyDocument
Gets the owner document.
(Inherited from Format.)
Public propertyKeepLinesTogether
When true, all lines for this paragraph are maintained on a single page whenever possible.
Public propertyKeepWithNext
When true, the paragraph is on the same page as the following paragraph whenever possible.
Public propertyLeftIndentation
Gets or sets (in points) the left indentation for the paragraph.
Public propertyLineSpacing
Gets or sets the line spacing.
Public propertyLineSpacingRule
Gets or sets the line spacing rule.
Public propertyMirrorIndents
Gets or sets whether the paragraph indents should be interpreted as mirrored indents.
Public propertyNoSpaceBetweenParagraphsOfSameStyle
When true, spacing between paragraphs with the same style will be ignored.
Public propertyOutlineLevel
Gets or sets the outline level.
Public propertyPageBreakBefore
When true, this paragraph is rendered on the start of a new page in the document.
Public propertyRightIndentation
Gets or sets (in points) the right indentation for the paragraph.
Public propertyRightToLeft
When true, this is a right-to-left paragraph. Supported only in DOCX and DOC formats.
Public propertySpaceAfter
Gets or sets the amount of spacing after the paragraph (in points).
Public propertySpaceBefore
Gets or sets the amount of spacing before the paragraph (in points).
Public propertySpecialIndentation
Gets or sets the special indentation for the paragraph.
Public propertyStyle
Gets or sets the style.
Public propertyCode exampleTabs
Gets the TabStops collection.
Public propertyWidowControl
When true, this will prevent a single line of the paragraph from being displayed on a separate page from the remaining content.
Top
Remarks

GemBox.Document supports a variety of paragraph formatting options like alignment, borders, spacing, indentation, tabs and many others.

ParagraphFormat can be set on:

For more information about ParagraphFormat properties, see paragraph formatting sample.

For more information about formattings and styles in GemBox.Document, see formattings and styles samples.

See Also