Interface IParagraphStyle
Styling for paragraphs.
Inherited Members
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public interface IParagraphStyle : IDerivedStyle
When code works with paragraph-level styling through a contract rather than a concrete type, IParagraphStyle is that contract. It describes the paragraph aspects of a Word style, the borders, indentation, and inherited defaults that apply to a block of text, so a paragraph's formatting can be read or carried without binding to the implementing class.
The concrete implementor in IronWord is ParagraphStyle, and you usually obtain the interface from it: ParagraphStyle exposes a DefaultStyle property typed as IParagraphStyle that returns the fallback paragraph style. The contract surfaces three members. Borders is a ParagraphBorders for the lines around the block, Indentation is a ParagraphIndentation for the left, right, and special indents, and DefaultStyle points to the inherited paragraph defaults. Read these to inspect a paragraph's formatting, and apply changes through the concrete ParagraphStyle you set on a paragraph.
The styled text how-to formats paragraph text, and the document element tutorial shows how paragraphs and styles compose.
Properties
Borders
Border settings for the paragraph.
Declaration
ParagraphBorders Borders { get; }
Property Value
| Type | Description |
|---|---|
| ParagraphBorders |
DefaultStyle
The default paragraph style.
Declaration
IParagraphStyle DefaultStyle { get; }
Property Value
| Type | Description |
|---|---|
| IParagraphStyle |
Indentation
Indentation settings for the paragraph.
Declaration
ParagraphIndentation Indentation { get; }
Property Value
| Type | Description |
|---|---|
| ParagraphIndentation |