API Reference
PdfHeadingStyle
Reusable heading style for H1/H2/H3 typography and vertical rhythm.
Inheritance
- Object
- PdfHeadingStyle
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method PdfHeadingStyle.Clone
- Property PdfHeadingStyles.Level1
- Property PdfHeadingStyles.Level2
- Property PdfHeadingStyles.Level3
- Property PdfSectionOptions.HeadingStyle
Accepted by parameters
- Method PdfDocument.DefaultHeadingStyle
- Method PdfDocument.H1
- Method PdfDocument.H2
- Method PdfDocument.H3
- Method PdfElementCompose.H1
- Method PdfElementCompose.H1
- Method PdfElementCompose.H2
- Method PdfElementCompose.H2
- Method PdfElementCompose.H3
- Method PdfElementCompose.H3
- Method PdfItemCompose.H1
- Method PdfItemCompose.H1
- Method PdfItemCompose.H2
- Method PdfItemCompose.H2
- Method PdfItemCompose.H3
- Method PdfItemCompose.H3
- Method PdfOptions.SetDefaultHeadingStyle
- Method PdfPageCompose.DefaultHeadingStyle
- Method PdfRowColumnCompose.H1
- Method PdfRowColumnCompose.H1
- Method PdfRowColumnCompose.H2
- Method PdfRowColumnCompose.H2
- Method PdfRowColumnCompose.H3
- Method PdfRowColumnCompose.H3
Constructors
public PdfHeadingStyle() #Methods
Inherited Methods
Properties
public Nullable<Double> FontSize { get; set; } #Heading font size in points. When null the writer uses the built-in size for the heading level.
public Nullable<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 Nullable<Double> SpacingAfter { get; set; } #Vertical space after the heading, in points. When null the writer uses the built-in heading spacing.
public Nullable<PdfColor> Color { get; set; } #Heading text color. A heading block color overrides this value.
public Nullable<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. 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, 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.