Class ParagraphStyle
Represents the style properties applied to a paragraph in a Word document.
Implements
Inherited Members
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class ParagraphStyle : DocumentStyle, ICloneable, ITextStyle
Constructors
ParagraphStyle()
Create a new paragraph style
Declaration
public ParagraphStyle()
Properties
AdjustRightIndent
Gets or sets a value indicating whether to adjust the right indent of the paragraph automatically.
Declaration
public Nullable<bool> AdjustRightIndent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
AutoSpaceEastAndNumbers
Gets or sets a value indicating whether to automatically adjust spacing between East Asian characters and numbers.
Declaration
public Nullable<bool> AutoSpaceEastAndNumbers { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
AutoSpaceLatinAndEast
Gets or sets a value indicating whether to automatically adjust spacing between Latin characters and East Asian characters.
Declaration
public Nullable<bool> AutoSpaceLatinAndEast { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Borders
Gets or sets the border settings for the paragraph.
Declaration
public ParagraphBorders Borders { get; set; }
Property Value
| Type | Description |
|---|---|
| ParagraphBorders |
ContextualSpacing
Gets or sets a value indicating whether to enable contextual spacing for the paragraph.
Declaration
public Nullable<bool> ContextualSpacing { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Indentation
Gets or sets the indentation settings for the paragraph.
Declaration
public ParagraphIndentation Indentation { get; set; }
Property Value
| Type | Description |
|---|---|
| ParagraphIndentation |
Justification
Gets or sets the justification alignment of the paragraph.
Declaration
public Nullable<JustificationValues> Justification { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<JustificationValues> |
KeepLinesOnPage
Gets or sets a value indicating whether to keep all lines of the paragraph on the same page.
Declaration
public Nullable<bool> KeepLinesOnPage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
KeepWithNextParagraph
Gets or sets a value indicating whether to keep the paragraph with the next paragraph.
Declaration
public Nullable<bool> KeepWithNextParagraph { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Kinsoku
Gets or sets a value indicating whether to apply kinsoku rules for the paragraph.
Declaration
public Nullable<bool> Kinsoku { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
LineSpacing
Gets or sets the spacing between lines within the paragraph.
Declaration
public LineSpacing LineSpacing { get; set; }
Property Value
| Type | Description |
|---|---|
| IronSoftware.Abstractions.Styling.LineSpacing |
MirrorIndents
Gets or sets a value indicating whether to mirror the paragraph indents when the text direction is changed.
Declaration
public Nullable<bool> MirrorIndents { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
OutlineLevel
Gets or sets the OutlineLevel for the paragraph.
Declaration
public Nullable<int> OutlineLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
OverflowPunctuation
Gets or sets a value indicating whether to allow overflow punctuation for the paragraph.
Declaration
public Nullable<bool> OverflowPunctuation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
PageBreakBefore
Gets or sets a value indicating whether to insert a page break before the paragraph.
Declaration
public Nullable<bool> PageBreakBefore { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
RightToLeft
Gets or sets a value indicating whether the text in the paragraph is right-to-left.
Declaration
public Nullable<bool> RightToLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
TextAlignment
Gets or sets the vertical text alignment of the paragraph.
Declaration
public Nullable<VerticalTextAlignmentValues> TextAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<VerticalTextAlignmentValues> |
WordWrap
Gets or sets a value indicating whether to enable word wrap for the paragraph.
Declaration
public Nullable<bool> WordWrap { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Methods
Clone()
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object |