# PdfListStyleFluent

The fluent methods of PdfListStyle, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Modifiers**

static

The fluent methods of [PdfListStyle](/api/pdf/officeimo-pdf-pdfliststyle/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- PdfListStyleFluent

Filter members 

Show inherited

## Methods

`public static PdfListStyle Color(PdfListStyle pdfListStyle, OfficeColor? value)` [#](#method-color-officeimo-pdf-pdfliststyle-nullable-officeimo-officecolor)

Sets [PdfListStyle.Color](/api/pdf/officeimo-pdf-pdfliststyle/): List marker and text color. A list block color overrides this value.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { Color = value };    pdfListStyle.Color(value);
```

`public static PdfListStyle FontSize(PdfListStyle pdfListStyle, OfficeLength? value)` [#](#method-fontsize-officeimo-pdf-pdfliststyle-nullable-officeimo-officelength)

Sets [PdfListStyle.FontSize](/api/pdf/officeimo-pdf-pdfliststyle/): List font size in points. When null the writer uses the current default font size.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { FontSize = value };    pdfListStyle.FontSize(value);
```

`public static PdfListStyle ItemSpacing(PdfListStyle pdfListStyle, OfficeLength? value)` [#](#method-itemspacing-officeimo-pdf-pdfliststyle-nullable-officeimo-officelength)

Sets [PdfListStyle.ItemSpacing](/api/pdf/officeimo-pdf-pdfliststyle/): Vertical space between list items, in points. When null the writer uses a small fraction of the line height.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { ItemSpacing = value };    pdfListStyle.ItemSpacing(value);
```

`public static PdfListStyle JustificationMode(PdfListStyle pdfListStyle, PdfJustificationMode value)` [#](#method-justificationmode-officeimo-pdf-pdfliststyle-officeimo-pdf-pdfjustificationmode)

Sets [PdfListStyle.JustificationMode](/api/pdf/officeimo-pdf-pdfliststyle/): Expandable boundaries when the list uses OfficeAlignment.Justify. The default expands word separators.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.Pdf.PdfJustificationMode required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { JustificationMode = value };    pdfListStyle.JustificationMode(value);
```

`public static PdfListStyle JustifyExplicitLineBreaks(PdfListStyle pdfListStyle, bool value = true)` [#](#method-justifyexplicitlinebreaks-officeimo-pdf-pdfliststyle-boolean)

Sets [PdfListStyle.JustifyExplicitLineBreaks](/api/pdf/officeimo-pdf-pdfliststyle/): When true, a justified list item also expands lines ending with an explicit line break. The default retains natural spacing on those lines.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { JustifyExplicitLineBreaks = value };    pdfListStyle.JustifyExplicitLineBreaks(value);
```

`public static PdfListStyle JustifyLastLine(PdfListStyle pdfListStyle, bool value = true)` [#](#method-justifylastline-officeimo-pdf-pdfliststyle-boolean)

Sets [PdfListStyle.JustifyLastLine](/api/pdf/officeimo-pdf-pdfliststyle/): When true, a justified list item also expands its final line. The default retains natural spacing on that line.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { JustifyLastLine = value };    pdfListStyle.JustifyLastLine(value);
```

`public static PdfListStyle KeepTogether(PdfListStyle pdfListStyle, bool value = true)` [#](#method-keeptogether-officeimo-pdf-pdfliststyle-boolean)

Sets [PdfListStyle.KeepTogether](/api/pdf/officeimo-pdf-pdfliststyle/): When true, the list moves as a unit instead of splitting across pages when it fits in the page frame.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { KeepTogether = value };    pdfListStyle.KeepTogether(value);
```

`public static PdfListStyle KeepWithNext(PdfListStyle pdfListStyle, bool value = true)` [#](#method-keepwithnext-officeimo-pdf-pdfliststyle-boolean)

Sets [PdfListStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfliststyle/): When true, the list moves to the next page when it would otherwise be separated from the following flow block.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { KeepWithNext = value };    pdfListStyle.KeepWithNext(value);
```

`public static PdfListStyle LeftIndent(PdfListStyle pdfListStyle, OfficeLength value)` [#](#method-leftindent-officeimo-pdf-pdfliststyle-officeimo-officelength)

Sets [PdfListStyle.LeftIndent](/api/pdf/officeimo-pdf-pdfliststyle/): Horizontal inset from the list frame to the marker, in points.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { LeftIndent = value };    pdfListStyle.LeftIndent(value);
```

`public static PdfListStyle LineHeight(PdfListStyle pdfListStyle, double? value)` [#](#method-lineheight-officeimo-pdf-pdfliststyle-nullable-system-double)

Sets [PdfListStyle.LineHeight](/api/pdf/officeimo-pdf-pdfliststyle/): Line advance multiplier relative to the list font size. When null the writer uses the built-in list line height.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value double? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { LineHeight = value };    pdfListStyle.LineHeight(value);
```

`public static PdfListStyle LineSpacing(PdfListStyle pdfListStyle, PdfLineSpacing? value)` [#](#method-linespacing-officeimo-pdf-pdfliststyle-officeimo-pdf-pdflinespacing)

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

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.Pdf.PdfLineSpacing? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { LineSpacing = value };    pdfListStyle.LineSpacing(value);
```

`public static PdfListStyle MarkerAlign(PdfListStyle pdfListStyle, OfficeAlignment? value)` [#](#method-markeralign-officeimo-pdf-pdfliststyle-nullable-officeimo-officealignment)

Sets [PdfListStyle.MarkerAlign](/api/pdf/officeimo-pdf-pdfliststyle/): Optional horizontal alignment of the marker inside the marker column. When null, bullets use left alignment and numbered lists use right alignment.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeAlignment? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerAlign = value };    pdfListStyle.MarkerAlign(value);
```

`public static PdfListStyle MarkerBold(PdfListStyle pdfListStyle, bool value = true)` [#](#method-markerbold-officeimo-pdf-pdfliststyle-boolean)

Sets [PdfListStyle.MarkerBold](/api/pdf/officeimo-pdf-pdfliststyle/): When true, list markers render with the bold variant of the current list font.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerBold = value };    pdfListStyle.MarkerBold(value);
```

`public static PdfListStyle MarkerColor(PdfListStyle pdfListStyle, OfficeColor? value)` [#](#method-markercolor-officeimo-pdf-pdfliststyle-nullable-officeimo-officecolor)

Sets [PdfListStyle.MarkerColor](/api/pdf/officeimo-pdf-pdfliststyle/): Optional list marker color. When null the marker uses the list block color or list text color.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerColor = value };    pdfListStyle.MarkerColor(value);
```

`public static PdfListStyle MarkerFont(PdfListStyle pdfListStyle, PdfStandardFont? value)` [#](#method-markerfont-officeimo-pdf-pdfliststyle-nullable-officeimo-pdf-pdfstandardfont)

Sets [PdfListStyle.MarkerFont](/api/pdf/officeimo-pdf-pdfliststyle/): Optional standard font family used for list markers. When null the writer uses the current default font.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.Pdf.PdfStandardFont? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerFont = value };    pdfListStyle.MarkerFont(value);
```

`public static PdfListStyle MarkerFontFamily(PdfListStyle pdfListStyle, string? value)` [#](#method-markerfontfamily-officeimo-pdf-pdfliststyle-string)

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

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value string? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerFontFamily = value };    pdfListStyle.MarkerFontFamily(value);
```

`public static PdfListStyle MarkerFontSize(PdfListStyle pdfListStyle, OfficeLength? value)` [#](#method-markerfontsize-officeimo-pdf-pdfliststyle-nullable-officeimo-officelength)

Sets [PdfListStyle.MarkerFontSize](/api/pdf/officeimo-pdf-pdfliststyle/): Optional marker font size in points. When null the marker uses the list font size.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerFontSize = value };    pdfListStyle.MarkerFontSize(value);
```

`public static PdfListStyle MarkerGap(PdfListStyle pdfListStyle, OfficeLength? value)` [#](#method-markergap-officeimo-pdf-pdfliststyle-nullable-officeimo-officelength)

Sets [PdfListStyle.MarkerGap](/api/pdf/officeimo-pdf-pdfliststyle/): Horizontal gap between the marker and text, in points. When null the writer uses one space advance.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerGap = value };    pdfListStyle.MarkerGap(value);
```

`public static PdfListStyle MarkerItalic(PdfListStyle pdfListStyle, bool value = true)` [#](#method-markeritalic-officeimo-pdf-pdfliststyle-boolean)

Sets [PdfListStyle.MarkerItalic](/api/pdf/officeimo-pdf-pdfliststyle/): When true, list markers render with the italic variant of the current list font.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerItalic = value };    pdfListStyle.MarkerItalic(value);
```

`public static PdfListStyle MarkerWidth(PdfListStyle pdfListStyle, OfficeLength? value)` [#](#method-markerwidth-officeimo-pdf-pdfliststyle-nullable-officeimo-officelength)

Sets [PdfListStyle.MarkerWidth](/api/pdf/officeimo-pdf-pdfliststyle/): Optional marker column width, in points. When null the writer estimates the width from the marker text.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { MarkerWidth = value };    pdfListStyle.MarkerWidth(value);
```

`public static PdfListStyle SpacingAfter(PdfListStyle pdfListStyle, OfficeLength? value)` [#](#method-spacingafter-officeimo-pdf-pdfliststyle-nullable-officeimo-officelength)

Sets [PdfListStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfliststyle/): Vertical space after the list, in points. When null the writer uses the item spacing.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { SpacingAfter = value };    pdfListStyle.SpacingAfter(value);
```

`public static PdfListStyle SpacingBefore(PdfListStyle pdfListStyle, OfficeLength value)` [#](#method-spacingbefore-officeimo-pdf-pdfliststyle-officeimo-officelength)

Sets [PdfListStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfliststyle/): Vertical space before the list, in points.

Parameters

**pdfListStyle OfficeIMO.Pdf.PdfListStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfListStyle` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfListStyle { SpacingBefore = value };    pdfListStyle.SpacingBefore(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:618F5DA034DA3F067C7C27EDD2C8859C52EC6631389B554CB25603B4CE240C88 -->
