Click or drag to resize

ParagraphStyle Class

Represents a style which can be applied to one or more Paragraphs within a document content.
Inheritance Hierarchy

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public sealed class ParagraphStyle : Style

The ParagraphStyle type exposes the following members.

Public methodParagraphStyle
Initializes a new instance of the ParagraphStyle class.
Public propertyBaseStyle
Gets or sets the style on which this style is based.
Public propertyCharacterFormat
Gets or sets the character format.
Public propertyDocument
Gets the owner document.
(Overrides StyleDocument.)
Public propertyListFormat
Gets or sets the list format.
Public propertyName
Gets or sets the name of the style.
(Inherited from Style.)
Public propertyNextParagraphStyle
Gets or sets the style that will be assigned automatically to following paragraph.
Public propertyParagraphFormat
Gets or sets the paragraph format which shall be applied to the referencing ParagraphStyle.
Public propertyStyleType
Gets the type of the style.
(Overrides StyleStyleType.)
Public methodToString
Returns a String that represents this Style instance.
(Inherited from Style.)

Styles provide a way to format your document in a consistent way so when you change your formatting options on a style, all document elements referencing that style will be changed.

To apply a ParagraphStyle to a Paragraph, set it to a ParagraphFormat.Style property on a Paragraph.ParagraphFormat.

For an example how to apply ParagraphStyle to a Paragraph, see styles example.

See Also