# PdfTableOfContentsOptionsFluent

The fluent methods of PdfTableOfContentsOptions, 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 [PdfTableOfContentsOptions](/api/pdf/officeimo-pdf-pdftableofcontentsoptions/), 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
- PdfTableOfContentsOptionsFluent

Filter members 

Show inherited

## Methods

`public static PdfTableOfContentsOptions Configure(PdfTableOfContentsOptions pdfTableOfContentsOptions, Action<PdfTableOfContentsOptions> configure)` [#](#method-configure-officeimo-pdf-pdftableofcontentsoptions-action-officeimo-pdf-pdftableofcontentsoptions)

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

**pdfTableOfContentsOptions OfficeIMO.Pdf.PdfTableOfContentsOptions required**

The instance.

**configure System.Action<OfficeIMO.Pdf.PdfTableOfContentsOptions> required**

Assignments applied in order.

Returns

`PdfTableOfContentsOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTableOfContentsOptions { PageNumberFormatter = value };    pdfTableOfContentsOptions.Configure(configured => configured.PageNumberFormatter = value);
```

`public static PdfTableOfContentsOptions Entries(PdfTableOfContentsOptions pdfTableOfContentsOptions, IReadOnlyList<PdfTableOfContentsEntry>? value)` [#](#method-entries-officeimo-pdf-pdftableofcontentsoptions-collections-generic-ireadonlylist-officeimo-pdf-pdftableofcontentsentry)

Sets [PdfTableOfContentsOptions.Entries](/api/pdf/officeimo-pdf-pdftableofcontentsoptions/): Explicit bookmark entries, or null to use generated document sections.

Parameters

**pdfTableOfContentsOptions OfficeIMO.Pdf.PdfTableOfContentsOptions required**

The instance.

**value System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfTableOfContentsEntry>? required**

The value.

Returns

`PdfTableOfContentsOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Pdf.PdfTableOfContentsOptions { Entries = value };    pdfTableOfContentsOptions.Entries(value);
```

`public static PdfTableOfContentsOptions IndentPerLevel(PdfTableOfContentsOptions pdfTableOfContentsOptions, OfficeLength value)` [#](#method-indentperlevel-officeimo-pdf-pdftableofcontentsoptions-officeimo-officelength)

Sets [PdfTableOfContentsOptions.IndentPerLevel](/api/pdf/officeimo-pdf-pdftableofcontentsoptions/): Indent added for each hierarchy level after the minimum.

Parameters

**pdfTableOfContentsOptions OfficeIMO.Pdf.PdfTableOfContentsOptions required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfTableOfContentsOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableOfContentsOptions { IndentPerLevel = value };    pdfTableOfContentsOptions.IndentPerLevel(value);
```

`public static PdfTableOfContentsOptions Leader(PdfTableOfContentsOptions pdfTableOfContentsOptions, PdfTabLeaderStyle value)` [#](#method-leader-officeimo-pdf-pdftableofcontentsoptions-officeimo-pdf-pdftableaderstyle)

Sets [PdfTableOfContentsOptions.Leader](/api/pdf/officeimo-pdf-pdftableofcontentsoptions/): Leader rendered between the linked title and page number.

Parameters

**pdfTableOfContentsOptions OfficeIMO.Pdf.PdfTableOfContentsOptions required**

The instance.

**value OfficeIMO.Pdf.PdfTabLeaderStyle required**

The value.

Returns

`PdfTableOfContentsOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfTableOfContentsOptions { Leader = value };    pdfTableOfContentsOptions.Leader(value);
```

`public static PdfTableOfContentsOptions MaximumLevel(PdfTableOfContentsOptions pdfTableOfContentsOptions, int value)` [#](#method-maximumlevel-officeimo-pdf-pdftableofcontentsoptions-int32)

Sets [PdfTableOfContentsOptions.MaximumLevel](/api/pdf/officeimo-pdf-pdftableofcontentsoptions/): Highest section level included.

Parameters

**pdfTableOfContentsOptions OfficeIMO.Pdf.PdfTableOfContentsOptions required**

The instance.

**value int required**

The value.

Returns

`PdfTableOfContentsOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Pdf.PdfTableOfContentsOptions { MaximumLevel = value };    pdfTableOfContentsOptions.MaximumLevel(value);
```

`public static PdfTableOfContentsOptions MinimumLevel(PdfTableOfContentsOptions pdfTableOfContentsOptions, int value)` [#](#method-minimumlevel-officeimo-pdf-pdftableofcontentsoptions-int32)

Sets [PdfTableOfContentsOptions.MinimumLevel](/api/pdf/officeimo-pdf-pdftableofcontentsoptions/): Lowest section level included.

Parameters

**pdfTableOfContentsOptions OfficeIMO.Pdf.PdfTableOfContentsOptions required**

The instance.

**value int required**

The value.

Returns

`PdfTableOfContentsOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Pdf.PdfTableOfContentsOptions { MinimumLevel = value };    pdfTableOfContentsOptions.MinimumLevel(value);
```

`public static PdfTableOfContentsOptions Title(PdfTableOfContentsOptions pdfTableOfContentsOptions, string? value)` [#](#method-title-officeimo-pdf-pdftableofcontentsoptions-string)

Sets [PdfTableOfContentsOptions.Title](/api/pdf/officeimo-pdf-pdftableofcontentsoptions/): Optional TOC heading; set null to omit it.

Parameters

**pdfTableOfContentsOptions OfficeIMO.Pdf.PdfTableOfContentsOptions required**

The instance.

**value string? required**

The value.

Returns

`PdfTableOfContentsOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfTableOfContentsOptions { Title = value };    pdfTableOfContentsOptions.Title(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:113DBE755BC3754B5650F7AAF48386E5BA605A803F124BBDF4977A1F770FBB0C -->
