# PdfParagraphStyle

Describes layout options for rich paragraph rendering.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfParagraphStyle.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L9)

Describes layout options for rich paragraph rendering.

## Inheritance

- object
- PdfParagraphStyle

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Fillable equipment inspection](/showcase/pdf-equipment-inspection/) Sample
  
  Create a PDF form with named text fields, checkboxes and a disposition dropdown for an equipment return workflow. Includes runnable C# source.

## Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [PdfCreateOptions.DefaultParagraphStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-defaultparagraphstyle)
- Method [PdfParagraphStyle.Clone](/api/pdf/officeimo-pdf-pdfparagraphstyle/#method-clone)
- Property [PdfTheme.ParagraphStyle](/api/pdf/officeimo-pdf-pdftheme/#property-paragraphstyle)

### Accepted by parameters 3

- Method [PdfContentBuilder.AddParagraph](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addparagraph-string-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfparagraphstyle) parameter `style`
- Method [PdfDocument.AddParagraph](/api/pdf/officeimo-pdf-pdfdocument/#method-addparagraph-string-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfparagraphstyle) parameter `style`
- Method [PdfPageBuilder.DefaultParagraphStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaultparagraphstyle-officeimo-pdf-pdfparagraphstyle) parameter `style`

Filter members 

Show inherited

## Constructors

`public PdfParagraphStyle()` [#](#constructor-ctor)

[PdfParagraphStyle.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L9)

## Methods

`public PdfTabStop AddTabStop(OfficeLength position, PdfTabAlignment alignment = Left, PdfTabLeaderStyle leader = None)` [#](#method-addtabstop-officeimo-officelength-officeimo-pdf-pdftabalignment-officeimo-pdf-pdftableaderstyle)

[PdfParagraphStyle.cs:195](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L195)

Adds an explicit paragraph tab stop.

Parameters

**position OfficeIMO.OfficeLength required**

Physical tab stop position relative to the paragraph text frame.

**alignment OfficeIMO.Pdf.PdfTabAlignment = Left optional**

Text alignment anchored at this tab stop.

**leader OfficeIMO.Pdf.PdfTabLeaderStyle = None optional**

Leader fill rendered before the following text.

Returns

`PdfTabStop`

`public void ClearTabStops()` [#](#method-cleartabstops)

[PdfParagraphStyle.cs:202](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L202)

Removes all explicit paragraph tab stops.

`public PdfParagraphStyle Clone()` [#](#method-clone)

[PdfParagraphStyle.cs:157](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L157)

Creates a copy of this paragraph style.

Returns

`PdfParagraphStyle`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeLength? FontSize { get; set; }` [#](#property-fontsize)

[PdfParagraphStyle.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L23)

Physical fallback font size and empty-line font size. When null the writer uses the current default font size.

`public PdfLineSpacing? LineSpacing { get; set; }` [#](#property-linespacing)

[PdfParagraphStyle.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L31)

Explicit line spacing. When set, this overrides [PdfParagraphStyle.LineHeight](/api/pdf/officeimo-pdf-pdfparagraphstyle/).

`public double? LineHeight { get; set; }` [#](#property-lineheight)

[PdfParagraphStyle.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L35)

Line advance multiplier relative to the paragraph font size. Used when [PdfParagraphStyle.LineSpacing](/api/pdf/officeimo-pdf-pdfparagraphstyle/) is null. When null the writer uses the default line height.

`public OfficeLength LeftIndent { get; set; }` [#](#property-leftindent)

[PdfParagraphStyle.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L43)

Physical offset from the left edge of the paragraph frame. Negative values extend text into the left margin.

`public OfficeLength RightIndent { get; set; }` [#](#property-rightindent)

[PdfParagraphStyle.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L50)

Physical offset from the right edge of the paragraph frame. Negative values extend text into the right margin.

`public OfficeLength FirstLineIndent { get; set; }` [#](#property-firstlineindent)

[PdfParagraphStyle.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L57)

Physical additional indent for the first line. Negative values create a hanging indent relative to [PdfParagraphStyle.LeftIndent](/api/pdf/officeimo-pdf-pdfparagraphstyle/).

`public OfficeLength SpacingBefore { get; set; }` [#](#property-spacingbefore)

[PdfParagraphStyle.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L64)

Physical space before the paragraph.

`public OfficeLength? SpacingAfter { get; set; }` [#](#property-spacingafter)

[PdfParagraphStyle.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L72)

Physical space after the paragraph. When null the writer uses the default paragraph spacing.

`public OfficeLength? DefaultTabStopWidth { get; set; }` [#](#property-defaulttabstopwidth)

[PdfParagraphStyle.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L80)

Physical default paragraph tab-stop width. When null the writer uses the Word-compatible half-inch default.

`public IList<PdfTabStop> TabStops { get; }` [#](#property-tabstops)

[PdfParagraphStyle.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L87)

Explicit physical paragraph tab stops relative to the paragraph text frame.

`public PdfTextWhitespaceMode? TextWhitespaceMode { get; set; }` [#](#property-textwhitespacemode)

[PdfParagraphStyle.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L91)

Overrides document whitespace handling for this paragraph. Null uses the document setting.

`public PdfJustificationMode JustificationMode { get; set; }` [#](#property-justificationmode)

[PdfParagraphStyle.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L102)

Expandable boundaries when the paragraph uses OfficeAlignment.Justify. The default expands word separators.

`public bool JustifyExplicitLineBreaks { get; set; }` [#](#property-justifyexplicitlinebreaks)

[PdfParagraphStyle.cs:112](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L112)

When true, a justified paragraph also expands lines ending with an explicit line break. The default retains natural spacing on those lines.

`public bool JustifyLastLine { get; set; }` [#](#property-justifylastline)

[PdfParagraphStyle.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L115)

When true, a justified paragraph also expands its final line. The default retains natural spacing on that line.

`public bool KeepTogether { get; set; }` [#](#property-keeptogether)

[PdfParagraphStyle.cs:123](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L123)

When true, the paragraph starts on a new page instead of splitting across pages.

`public bool KeepWithNext { get; set; }` [#](#property-keepwithnext)

[PdfParagraphStyle.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L129)

When true, the paragraph moves to the next page when it would otherwise be separated from the following paragraph.

`public bool WidowControl { get; set; }` [#](#property-widowcontrol)

[PdfParagraphStyle.cs:131](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L131)

When true, paragraph page splits avoid single-line widows and orphans where the page frame allows it.

`public int MinimumOrphanLines { get; set; }` [#](#property-minimumorphanlines)

[PdfParagraphStyle.cs:137](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L137)

Minimum number of paragraph lines kept at the bottom of a page when the paragraph splits. Zero uses the two-line default when [PdfParagraphStyle.WidowControl](/api/pdf/officeimo-pdf-pdfparagraphstyle/) is enabled, or disables this constraint otherwise.

`public int MinimumWidowLines { get; set; }` [#](#property-minimumwidowlines)

[PdfParagraphStyle.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfParagraphStyle.cs#L148)

Minimum number of paragraph lines carried to the top of the following page when the paragraph splits. Zero uses the two-line default when [PdfParagraphStyle.WidowControl](/api/pdf/officeimo-pdf-pdfparagraphstyle/) is enabled, or disables this constraint otherwise.

<!-- PowerForge markdown artifact sha256:8B862F70F9EB4F11AD92289245EE31119BE22F3DE755C357CD880773F0DC698E -->
