Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfHeadingStyle

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 with working tree changes
Modifiers sealed

Reusable heading style for levels 1 through 9, including typography and vertical rhythm.

Inheritance

  • Object
  • PdfHeadingStyle

Usage

Explore 11 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 6

Constructors

public PdfHeadingStyle() #

Methods

public PdfHeadingStyle Clone() #
Returns: PdfHeadingStyle

Creates a copy of this heading style.

Properties

public PdfLineSpacing? LineSpacing { get; set; } #

Explicit line spacing. When set, this overrides PdfHeadingStyle.LineHeight.

public Double? FontSize { get; set; } #

Heading font size in points. When null the writer uses the built-in size for the heading level.

public Double? LineHeight { get; set; } #

Line advance multiplier relative to the heading font size. When null the writer uses the built-in heading line height.

public Double SpacingBefore { get; set; } #

Vertical space before the heading, in points.

public Double? SpacingAfter { get; set; } #

Vertical space after the heading, in points. When null the writer uses the built-in heading spacing.

public PdfColor? Color { get; set; } #

Heading text color. A heading block color overrides this value.

public PdfStandardFont? Font { get; set; } #

Heading font slot. When null the writer uses the document default font family.

public String? FontFamily { get; set; } #

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

public Boolean Bold { get; set; } #

When true, headings use the bold variant of the document font.

public Boolean ApplySpacingBeforeAtTop { get; set; } #

When true, PdfHeadingStyle.SpacingBefore is honored even when the heading starts a page or column.

public Boolean KeepWithNext { get; set; } #

When true, the heading moves to the next page when it would otherwise be separated from the following paragraph.