PdfHeadingStyle
OfficeIMO.Pdf
Reusable heading style for levels 1 through 9, including typography and vertical rhythm.
Inheritance
- object
- PdfHeadingStyle
Usage
Explore 13 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.
Returned or exposed by 5
- Method PdfHeadingStyle.Clone
- Property PdfHeadingStyles.Level1
- Property PdfHeadingStyles.Level2
- Property PdfHeadingStyles.Level3
- Property PdfSectionOptions.HeadingStyle
Accepted by parameters 8
- Method PdfContentBuilder.AddHeading
- Method PdfContentBuilder.H1
- Method PdfContentBuilder.H2
- Method PdfContentBuilder.H3
- Method PdfContentBuilder.Title
- Method PdfCreateOptions.SetDefaultHeadingStyle
- Method PdfDocument.AddHeading
- Method PdfPageBuilder.DefaultHeadingStyle
Constructors
public PdfHeadingStyle() #Methods
public PdfTabStop AddTabStop(OfficeLength position, PdfTabAlignment alignment = Left, PdfTabLeaderStyle leader = None) #Adds a text stop or stationary bar rule at the specified finite position.
Parameters
- position OfficeIMO.OfficeLength
- alignment OfficeIMO.Pdf.PdfTabAlignment = Left
- leader OfficeIMO.Pdf.PdfTabLeaderStyle = None
Returns
PdfTabStoppublic void ClearTabStops() #Removes all explicit heading text stops and bar rules.
Inherited Methods
Properties
public PdfLineSpacing? LineSpacing { get; set; } #Explicit line spacing. When set, this overrides PdfHeadingStyle.LineHeight.
public OfficeLength? 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 OfficeLength SpacingBefore { get; set; } #Vertical space before the heading, in points.
public OfficeLength? SpacingAfter { get; set; } #Vertical space after the heading, in points. When null the writer uses the built-in heading spacing.
public OfficeColor? 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 IList<PdfTabStop> TabStops { get; } #Explicit text stops and bar rules relative to the heading text frame.
public bool Bold { get; set; } #When true, headings use the bold variant of the document font.
public bool ApplySpacingBeforeAtTop { get; set; } #When true, PdfHeadingStyle.SpacingBefore is honored even when the heading starts a page or column.
public bool KeepWithNext { get; set; } #When true, the heading moves to the next page when it would otherwise be separated from the following paragraph.