# PdfListStyle

Reusable list style for bullet and numbered list typography and rhythm.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfListStyle.cs:173](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L173)

**Modifiers**

sealed

Reusable list style for bullet and numbered list typography and rhythm.

## Inheritance

- object
- PdfListStyle

## Usage

Explore 8 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.DefaultListStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-defaultliststyle)
- Method [PdfListStyle.Clone](/api/pdf/officeimo-pdf-pdfliststyle/#method-clone)
- Property [PdfTheme.ListStyle](/api/pdf/officeimo-pdf-pdftheme/#property-liststyle)

### Accepted by parameters 5

- Method [PdfContentBuilder.AddList](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addlist-collections-generic-ienumerable-system-string-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfliststyle) parameter `style`
- Method [PdfContentBuilder.AddNumberedList](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addnumberedlist-collections-generic-ienumerable-system-string-officeimo-officealignment-nullable-officeimo-officecolor-int32-officeimo-pdf-pdfliststyle) parameter `style`
- Method [PdfDocument.AddList](/api/pdf/officeimo-pdf-pdfdocument/#method-addlist-collections-generic-ienumerable-system-string-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfliststyle) parameter `style`
- Method [PdfDocument.AddNumberedList](/api/pdf/officeimo-pdf-pdfdocument/#method-addnumberedlist-collections-generic-ienumerable-system-string-officeimo-officealignment-nullable-officeimo-officecolor-int32-officeimo-pdf-pdfliststyle) parameter `style`
- Method [PdfPageBuilder.DefaultListStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaultliststyle-officeimo-pdf-pdfliststyle) parameter `style`

Filter members 

Show inherited

## Constructors

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

## Methods

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

[PdfListStyle.cs:173](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L173)

Creates a copy of this list style.

Returns

`PdfListStyle`

## 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 PdfLineSpacing? LineSpacing { get; set; }` [#](#property-linespacing)

[PdfListStyle.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L11)

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

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

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

List font size in points. When null the writer uses the current default font size.

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

[PdfListStyle.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L40)

Line advance multiplier relative to the list font size. When null the writer uses the built-in list line height.

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

[PdfListStyle.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L49)

Horizontal inset from the list frame to the marker, in points.

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

[PdfListStyle.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L58)

Horizontal gap between the marker and text, in points. When null the writer uses one space advance.

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

[PdfListStyle.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L67)

Optional marker column width, in points. When null the writer estimates the width from the marker text.

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

[PdfListStyle.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L76)

Vertical space before the list, in points.

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

[PdfListStyle.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L85)

Vertical space after the list, in points. When null the writer uses the item spacing.

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

[PdfListStyle.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L94)

Vertical space between list items, in points. When null the writer uses a small fraction of the line height.

`public OfficeColor? Color { get; set; }` [#](#property-color)

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

List marker and text color. A list block color overrides this value.

`public OfficeColor? MarkerColor { get; set; }` [#](#property-markercolor)

[PdfListStyle.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L104)

Optional list marker color. When null the marker uses the list block color or list text color.

`public OfficeAlignment? MarkerAlign { get; set; }` [#](#property-markeralign)

[PdfListStyle.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L107)

Optional horizontal alignment of the marker inside the marker column. When null, bullets use left alignment and numbered lists use right alignment.

`public PdfStandardFont? MarkerFont { get; set; }` [#](#property-markerfont)

[PdfListStyle.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L117)

Optional standard font family used for list markers. When null the writer uses the current default font.

`public string? MarkerFontFamily { get; set; }` [#](#property-markerfontfamily)

[PdfListStyle.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L120)

Optional registered named font family used for list markers. When null, [PdfListStyle.MarkerFont](/api/pdf/officeimo-pdf-pdfliststyle/) is used.

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

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

Optional marker font size in points. When null the marker uses the list font size.

`public bool MarkerBold { get; set; }` [#](#property-markerbold)

[PdfListStyle.cs:138](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L138)

When true, list markers render with the bold variant of the current list font.

`public bool MarkerItalic { get; set; }` [#](#property-markeritalic)

[PdfListStyle.cs:140](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L140)

When true, list markers render with the italic variant of the current list font.

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

[PdfListStyle.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L142)

When true, the list moves as a unit instead of splitting across pages when it fits in the page frame.

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

[PdfListStyle.cs:146](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L146)

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

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

[PdfListStyle.cs:150](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L150)

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

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

[PdfListStyle.cs:160](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L160)

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

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

[PdfListStyle.cs:163](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListStyle.cs#L163)

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

<!-- PowerForge markdown artifact sha256:E833EDCD5AAF71BF1559AFA3BE63D15706ACC0430FFCD98CA1C7B17C9821D0E1 -->
