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: 25.3.30.1231
Syntax
public sealed class ParagraphStyle : Style

The ParagraphStyle type exposes the following members.

Constructors
  NameDescription
Public methodParagraphStyle
Initializes a new instance of the ParagraphStyle class.
Top
Methods
  NameDescription
Public methodToString
Returns a String that represents this Style instance.
(Inherited from Style.)
Top
Properties
  NameDescription
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 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.)
Top
Remarks

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

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

See Also