# PdfHeadingStyleFluent

The fluent methods of PdfHeadingStyle, 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 [PdfHeadingStyle](/api/pdf/officeimo-pdf-pdfheadingstyle/), 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
- PdfHeadingStyleFluent

Filter members 

Show inherited

## Methods

`public static PdfHeadingStyle ApplySpacingBeforeAtTop(PdfHeadingStyle pdfHeadingStyle, bool value = true)` [#](#method-applyspacingbeforeattop-officeimo-pdf-pdfheadingstyle-boolean)

Sets [PdfHeadingStyle.ApplySpacingBeforeAtTop](/api/pdf/officeimo-pdf-pdfheadingstyle/): When true, [PdfHeadingStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfheadingstyle/) is honored even when the heading starts a page or column.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfHeadingStyle` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { ApplySpacingBeforeAtTop = value };    pdfHeadingStyle.ApplySpacingBeforeAtTop(value);
```

`public static PdfHeadingStyle Bold(PdfHeadingStyle pdfHeadingStyle, bool value = true)` [#](#method-bold-officeimo-pdf-pdfheadingstyle-boolean)

Sets [PdfHeadingStyle.Bold](/api/pdf/officeimo-pdf-pdfheadingstyle/): When true, headings use the bold variant of the document font.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfHeadingStyle` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { Bold = value };    pdfHeadingStyle.Bold(value);
```

`public static PdfHeadingStyle Color(PdfHeadingStyle pdfHeadingStyle, OfficeColor? value)` [#](#method-color-officeimo-pdf-pdfheadingstyle-nullable-officeimo-officecolor)

Sets [PdfHeadingStyle.Color](/api/pdf/officeimo-pdf-pdfheadingstyle/): Heading text color. A heading block color overrides this value.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

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

`public static PdfHeadingStyle Font(PdfHeadingStyle pdfHeadingStyle, PdfStandardFont? value)` [#](#method-font-officeimo-pdf-pdfheadingstyle-nullable-officeimo-pdf-pdfstandardfont)

Sets [PdfHeadingStyle.Font](/api/pdf/officeimo-pdf-pdfheadingstyle/): Heading font slot. When null the writer uses the document default font family.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

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

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { Font = value };    pdfHeadingStyle.Font(value);
```

`public static PdfHeadingStyle FontFamily(PdfHeadingStyle pdfHeadingStyle, string? value)` [#](#method-fontfamily-officeimo-pdf-pdfheadingstyle-string)

Sets [PdfHeadingStyle.FontFamily](/api/pdf/officeimo-pdf-pdfheadingstyle/): Optional registered embedded family used by heading text. [PdfHeadingStyle.Font](/api/pdf/officeimo-pdf-pdfheadingstyle/) remains its fallback.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value string? required**

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { FontFamily = value };    pdfHeadingStyle.FontFamily(value);
```

`public static PdfHeadingStyle FontSize(PdfHeadingStyle pdfHeadingStyle, OfficeLength? value)` [#](#method-fontsize-officeimo-pdf-pdfheadingstyle-nullable-officeimo-officelength)

Sets [PdfHeadingStyle.FontSize](/api/pdf/officeimo-pdf-pdfheadingstyle/): Heading font size in points. When null the writer uses the built-in size for the heading level.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

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

`public static PdfHeadingStyle KeepWithNext(PdfHeadingStyle pdfHeadingStyle, bool value = true)` [#](#method-keepwithnext-officeimo-pdf-pdfheadingstyle-boolean)

Sets [PdfHeadingStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfheadingstyle/): When true, the heading moves to the next page when it would otherwise be separated from the following paragraph.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfHeadingStyle` The same instance.

Examples

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

`public static PdfHeadingStyle LineHeight(PdfHeadingStyle pdfHeadingStyle, double? value)` [#](#method-lineheight-officeimo-pdf-pdfheadingstyle-nullable-system-double)

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

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value double? required**

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

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

`public static PdfHeadingStyle LineSpacing(PdfHeadingStyle pdfHeadingStyle, PdfLineSpacing? value)` [#](#method-linespacing-officeimo-pdf-pdfheadingstyle-officeimo-pdf-pdflinespacing)

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

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

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

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

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

`public static PdfHeadingStyle SpacingAfter(PdfHeadingStyle pdfHeadingStyle, OfficeLength? value)` [#](#method-spacingafter-officeimo-pdf-pdfheadingstyle-nullable-officeimo-officelength)

Sets [PdfHeadingStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfheadingstyle/): Vertical space after the heading, in points. When null the writer uses the built-in heading spacing.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

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

`public static PdfHeadingStyle SpacingBefore(PdfHeadingStyle pdfHeadingStyle, OfficeLength value)` [#](#method-spacingbefore-officeimo-pdf-pdfheadingstyle-officeimo-officelength)

Sets [PdfHeadingStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfheadingstyle/): Vertical space before the heading, in points.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfHeadingStyle` The same instance.

Examples

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

`public static PdfHeadingStyle TabStop(PdfHeadingStyle pdfHeadingStyle, PdfTabStop item)` [#](#method-tabstop-officeimo-pdf-pdfheadingstyle-officeimo-pdf-pdftabstop)

Adds an item to [PdfHeadingStyle.TabStops](/api/pdf/officeimo-pdf-pdfheadingstyle/): Explicit text stops and bar rules relative to the heading text frame.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**item OfficeIMO.Pdf.PdfTabStop required**

The item.

Returns

`PdfHeadingStyle` The same instance.

`public static PdfHeadingStyle TabStops(PdfHeadingStyle pdfHeadingStyle, IEnumerable<PdfTabStop> items)` [#](#method-tabstops-officeimo-pdf-pdfheadingstyle-collections-generic-ienumerable-officeimo-pdf-pdftabstop)

Adds items to [PdfHeadingStyle.TabStops](/api/pdf/officeimo-pdf-pdfheadingstyle/): Explicit text stops and bar rules relative to the heading text frame.

Parameters

**pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTabStop> required**

The items, in order.

Returns

`PdfHeadingStyle` The same instance.

## 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:3634654FD48E9B833E6B275673D6788512F46DA9E9156A3F99C57381BA38D5E5 -->
