Class
SectionProperties

Configures page layout and presentation for Section elements, including page size, orientation, margins, headers, footers, and section break behavior.

Definition

Properties

ChapterHeadingStyleIndex

References the heading style used to determine chapter numbers for chapter-based page numbering schemes.

Declaration

cs-api-definition
public IStyleProperty<int?> ChapterHeadingStyleIndex { get; }

Property Value

IStyleProperty<int?>

The index of the chapter heading style.

ChapterSeparatorCharacter

Specifies the separator character displayed between chapter numbers and page numbers in chapter-based page numbering.

Declaration

cs-api-definition
public IStyleProperty<ChapterSeparatorType?> ChapterSeparatorCharacter { get; }

Property Value

IStyleProperty<ChapterSeparatorType?>

The chapter separator character.

FooterBottomMargin

Controls the distance from the bottom page edge to the footer content, in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public IStyleProperty<double?> FooterBottomMargin { get; }

Property Value

IStyleProperty<double?>

The footer bottom margin property.

HasDifferentFirstPageHeaderFooter

Enables distinct header and footer content on the section's first page, independent of subsequent pages.

Declaration

cs-api-definition
public IStyleProperty<bool?> HasDifferentFirstPageHeaderFooter { get; }

Property Value

IStyleProperty<bool?>

The has different first page header footer.

HeaderTopMargin

Controls the distance from the top page edge to the header content, in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public IStyleProperty<double?> HeaderTopMargin { get; }

Property Value

IStyleProperty<double?>

The header top margin property.

PageMargins

Defines the whitespace between page edges and content area on all four sides of the page.

Declaration

cs-api-definition
public IStyleProperty<Padding> PageMargins { get; }

Property Value

IStyleProperty<Padding>

The page margins property.

PageNumberFormat

Specifies the numbering style for page numbers in the section, such as Arabic numerals, Roman numerals, or alphabetic characters.

Declaration

cs-api-definition
public IStyleProperty<NumberingStyle?> PageNumberFormat { get; }

Property Value

IStyleProperty<NumberingStyle?>

The page number format.

PageOrientation

Controls whether pages in the section are rendered in portrait or landscape orientation.

Declaration

cs-api-definition
public IStyleProperty<PageOrientation?> PageOrientation { get; }

Property Value

IStyleProperty<PageOrientation?>

The page orientation.

PageSize

Specifies the physical dimensions of pages in the section, with width and height in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public IStyleProperty<Size?> PageSize { get; }

Property Value

IStyleProperty<Size?>

The page size property.

SectionType

Determines how the section begins relative to the previous section, controlling page breaks and continuity.

Declaration

cs-api-definition
public IStyleProperty<SectionType?> SectionType { get; }

Property Value

IStyleProperty<SectionType?>

The section type property.

StartingPageNumber

Sets the initial page number for the section, overriding automatic sequential numbering from previous sections.

This number appears on the first page of the section.

Declaration

cs-api-definition
public IStyleProperty<int?> StartingPageNumber { get; }

Property Value

IStyleProperty<int?>

The starting page number.

VerticalAlignment

Controls vertical positioning of content within the page, distributing whitespace above and below the content area.

Declaration

cs-api-definition
public IStyleProperty<VerticalAlignment> VerticalAlignment { get; }

Property Value

IStyleProperty<VerticalAlignment>

The vertical alignment property.

Methods

EnumerateStyleProperties()

Enumerates the style properties.

Declaration

cs-api-definition
protected override IEnumerable<IStyleProperty> EnumerateStyleProperties()

Returns

IEnumerable<IStyleProperty>

The style properties.

Overrides DocumentElementPropertiesBase.EnumerateStyleProperties()

GetStylePropertyOverride(IStylePropertyDefinition)

Gets specific style property or null.

Declaration

cs-api-definition
protected override IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)

Parameters

propertyDefinition

IStylePropertyDefinition

The property definition.

Returns

IStyleProperty

Overrides DocumentElementPropertiesBase.GetStylePropertyOverride(IStylePropertyDefinition)