# PdfSectionOptionsFluent

The fluent methods of PdfSectionOptions, 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 [PdfSectionOptions](/api/pdf/officeimo-pdf-pdfsectionoptions/), 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
- PdfSectionOptionsFluent

Filter members 

Show inherited

## Methods

`public static PdfSectionOptions DestinationName(PdfSectionOptions pdfSectionOptions, string? value)` [#](#method-destinationname-officeimo-pdf-pdfsectionoptions-string)

Sets [PdfSectionOptions.DestinationName](/api/pdf/officeimo-pdf-pdfsectionoptions/): Optional named destination; a stable document-local name is generated when omitted.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

**value string? required**

The value.

Returns

`PdfSectionOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Pdf.PdfSectionOptions { DestinationName = value };    pdfSectionOptions.DestinationName(value);
```

HeadingStyle 2 overloads

`public static PdfSectionOptions HeadingStyle(PdfSectionOptions pdfSectionOptions, PdfHeadingStyle? value)` [#](#method-headingstyle-officeimo-pdf-pdfsectionoptions-officeimo-pdf-pdfheadingstyle)

Sets [PdfSectionOptions.HeadingStyle](/api/pdf/officeimo-pdf-pdfsectionoptions/): Optional heading style override.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

**value OfficeIMO.Pdf.PdfHeadingStyle? required**

The value.

Returns

`PdfSectionOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Pdf.PdfSectionOptions { HeadingStyle = value };    pdfSectionOptions.HeadingStyle(value);
```

`public static PdfSectionOptions HeadingStyle(PdfSectionOptions pdfSectionOptions, Action<PdfHeadingStyle> configure)` [#](#method-headingstyle-officeimo-pdf-pdfsectionoptions-action-officeimo-pdf-pdfheadingstyle)

Configures [PdfSectionOptions.HeadingStyle](/api/pdf/officeimo-pdf-pdfsectionoptions/) in place (creating it when not set): Optional heading style override.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

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

Configures the value.

Returns

`PdfSectionOptions` The same instance.

`public static PdfSectionOptions IncludeHeading(PdfSectionOptions pdfSectionOptions, bool value = true)` [#](#method-includeheading-officeimo-pdf-pdfsectionoptions-boolean)

Sets [PdfSectionOptions.IncludeHeading](/api/pdf/officeimo-pdf-pdfsectionoptions/): Emits a heading for the section title.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfSectionOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfSectionOptions { IncludeHeading = value };    pdfSectionOptions.IncludeHeading(value);
```

`public static PdfSectionOptions IncludeInTableOfContents(PdfSectionOptions pdfSectionOptions, bool value = true)` [#](#method-includeintableofcontents-officeimo-pdf-pdfsectionoptions-boolean)

Sets [PdfSectionOptions.IncludeInTableOfContents](/api/pdf/officeimo-pdf-pdfsectionoptions/): Includes the section in generated tables of contents.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfSectionOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Pdf.PdfSectionOptions { IncludeInTableOfContents = value };    pdfSectionOptions.IncludeInTableOfContents(value);
```

`public static PdfSectionOptions Level(PdfSectionOptions pdfSectionOptions, int value)` [#](#method-level-officeimo-pdf-pdfsectionoptions-int32)

Sets [PdfSectionOptions.Level](/api/pdf/officeimo-pdf-pdfsectionoptions/): Outline and TOC hierarchy level.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

**value int required**

The value.

Returns

`PdfSectionOptions` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfSectionOptions { Level = value };    pdfSectionOptions.Level(value);
```

`public static PdfSectionOptions Reference(PdfSectionOptions pdfSectionOptions, PdfSectionReference? value)` [#](#method-reference-officeimo-pdf-pdfsectionoptions-officeimo-pdf-pdfsectionreference)

Sets [PdfSectionOptions.Reference](/api/pdf/officeimo-pdf-pdfsectionoptions/): Optional handle populated with the final output location.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

**value OfficeIMO.Pdf.PdfSectionReference? required**

The value.

Returns

`PdfSectionOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfSectionOptions { Reference = value };    pdfSectionOptions.Reference(value);
```

`public static PdfSectionOptions StartOnNewPage(PdfSectionOptions pdfSectionOptions, bool value = true)` [#](#method-startonnewpage-officeimo-pdf-pdfsectionoptions-boolean)

Sets [PdfSectionOptions.StartOnNewPage](/api/pdf/officeimo-pdf-pdfsectionoptions/): Starts the section on a new page when prior page content exists.

Parameters

**pdfSectionOptions OfficeIMO.Pdf.PdfSectionOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfSectionOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfSectionOptions { StartOnNewPage = value };    pdfSectionOptions.StartOnNewPage(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:7158588EFD2FFFBCCA9B2C29C8475131F2D98EC2D891EA745DF77D88DD0856A0 -->
