Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfHeadingStyleFluent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Modifiers
static

The fluent methods of 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

Methods

public static PdfHeadingStyle ApplySpacingBeforeAtTop(PdfHeadingStyle pdfHeadingStyle, bool value = true) #

Sets PdfHeadingStyle.ApplySpacingBeforeAtTop: When true, PdfHeadingStyle.SpacingBefore 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

// 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) #

Sets PdfHeadingStyle.Bold: 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

// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { Bold = value };    pdfHeadingStyle.Bold(value);
public static PdfHeadingStyle Color(PdfHeadingStyle pdfHeadingStyle, OfficeColor? value) #

Sets PdfHeadingStyle.Color: 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

// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { Color = value };    pdfHeadingStyle.Color(value);
public static PdfHeadingStyle Font(PdfHeadingStyle pdfHeadingStyle, PdfStandardFont? value) #

Sets PdfHeadingStyle.Font: 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

// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { Font = value };    pdfHeadingStyle.Font(value);
public static PdfHeadingStyle FontFamily(PdfHeadingStyle pdfHeadingStyle, string? value) #

Sets PdfHeadingStyle.FontFamily: Optional registered embedded family used by heading text. PdfHeadingStyle.Font remains its fallback.

Parameters

pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required
The instance.
value string? required
The value.

Returns

PdfHeadingStyle The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { FontFamily = value };    pdfHeadingStyle.FontFamily(value);
public static PdfHeadingStyle FontSize(PdfHeadingStyle pdfHeadingStyle, OfficeLength? value) #

Sets PdfHeadingStyle.FontSize: 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

// 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) #

Sets PdfHeadingStyle.KeepWithNext: 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

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { KeepWithNext = value };    pdfHeadingStyle.KeepWithNext(value);
public static PdfHeadingStyle LineHeight(PdfHeadingStyle pdfHeadingStyle, double? value) #

Sets PdfHeadingStyle.LineHeight: 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

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { LineHeight = value };    pdfHeadingStyle.LineHeight(value);
public static PdfHeadingStyle LineSpacing(PdfHeadingStyle pdfHeadingStyle, PdfLineSpacing? value) #

Sets PdfHeadingStyle.LineSpacing: Explicit line spacing. When set, this overrides PdfHeadingStyle.LineHeight.

Parameters

pdfHeadingStyle OfficeIMO.Pdf.PdfHeadingStyle required
The instance.
value OfficeIMO.Pdf.PdfLineSpacing? required
The value.

Returns

PdfHeadingStyle The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { LineSpacing = value };    pdfHeadingStyle.LineSpacing(value);
public static PdfHeadingStyle SpacingAfter(PdfHeadingStyle pdfHeadingStyle, OfficeLength? value) #

Sets PdfHeadingStyle.SpacingAfter: 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

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { SpacingAfter = value };    pdfHeadingStyle.SpacingAfter(value);
public static PdfHeadingStyle SpacingBefore(PdfHeadingStyle pdfHeadingStyle, OfficeLength value) #

Sets PdfHeadingStyle.SpacingBefore: 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

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfHeadingStyle { SpacingBefore = value };    pdfHeadingStyle.SpacingBefore(value);
public static PdfHeadingStyle TabStop(PdfHeadingStyle pdfHeadingStyle, PdfTabStop item) #

Adds an item to PdfHeadingStyle.TabStops: 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) #

Adds items to PdfHeadingStyle.TabStops: 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.