Class
SectionProperties

Represents the properties of a section in a document, including formatting options such as margins, size, and page settings.

Definition

Namespace:Telerik.Windows.Documents.Model.Styles

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class SectionProperties : DocumentElementPropertiesBase, IElementWithStyle

Inheritance: objectDocumentElementPropertiesBaseSectionProperties

Implements: IElementWithStyle

Inherited Members DocumentElementPropertiesBase.GetStyleProperty(IStylePropertyDefinition)DocumentElementPropertiesBase.GetStyleProperty(string)DocumentElementPropertiesBase.CopyPropertiesFrom(DocumentElementPropertiesBase)DocumentElementPropertiesBase.MergePropertiesWith(DocumentElementPropertiesBase)DocumentElementPropertiesBase.ToString()DocumentElementPropertiesBase.ClearProperties()DocumentElementPropertiesBase.OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)DocumentElementPropertiesBase.OnStyleChanged()DocumentElementPropertiesBase.OnStyleChanging()DocumentElementPropertiesBase.ValidateStyleType(StyleDefinition)DocumentElementPropertiesBase.StylePropertiesDocumentElementPropertiesBase.StyleNameDocumentElementPropertiesBase.OriginalStyleNameDocumentElementPropertiesBase.StyleDocumentElementPropertiesBase.HasRevisionsDocumentElementPropertiesBase.RevisionInfoDocumentElementPropertiesBase.OriginalProperties

Constructors

SectionProperties()

Declaration

cs-api-definition
public SectionProperties()

SectionProperties(DocumentElement)

Declaration

cs-api-definition
public SectionProperties(DocumentElement owner)

Parameters

owner

DocumentElement

SectionProperties(StyleDefinition)

Declaration

cs-api-definition
public SectionProperties(StyleDefinition owner)

Parameters

owner

StyleDefinition

Properties

ActualPageMargin

Gets or sets the actual page margin for the section. This property defines the space between the content of the section and the edges of the page.

Declaration

cs-api-definition
public Padding ActualPageMargin { get; set; }

Property Value

Padding

Returns a Padding value representing the margin dimensions.

Columns

Gets or sets the column properties for the section.

Declaration

cs-api-definition
[XamlCompositePropertySerializable]
public SectionColumnCollection Columns { get; set; }

Property Value

SectionColumnCollection

The column properties that define the layout and spacing of the columns in the section.

EndnotesFirstNumber

Gets or sets the first number to be used for endnotes in the document section.

Declaration

cs-api-definition
[XamlSerializable]
public int EndnotesFirstNumber { get; set; }

Property Value

int

The first number for endnotes, which determines the numbering scheme for subsequent endnotes.

EndnotesNumberingFormat

Gets or sets the numbering format for endnotes in a document section.

Declaration

cs-api-definition
[XamlSerializable]
public ListNumberingFormat EndnotesNumberingFormat { get; set; }

Property Value

ListNumberingFormat

A value that specifies the format of the numbering for endnotes. This can include formats such as Arabic numerals, Roman numerals, or letters.

EndnotesNumberingRestartType

Specifies the type of numbering for endnotes in a document section.

Declaration

cs-api-definition
[XamlSerializable]
public NumberingRestartType EndnotesNumberingRestartType { get; set; }

Property Value

NumberingRestartType

FooterBottomMargin

Gets or sets the bottom margin for the footer of the section.

Declaration

cs-api-definition
[XamlSerializable]
public int FooterBottomMargin { get; set; }

Property Value

int

A double value representing the bottom margin in units.

FootnotesFirstNumber

Gets or sets the first number used for footnotes in the section.

Declaration

cs-api-definition
[XamlSerializable]
public int FootnotesFirstNumber { get; set; }

Property Value

int

A int that represents the first footnote number. This value determines the starting point for footnote numbering in the document's section.

FootnotesNumberingFormat

Represents the formatting options for numbering footnotes in a section.

Declaration

cs-api-definition
[XamlSerializable]
public ListNumberingFormat FootnotesNumberingFormat { get; set; }

Property Value

ListNumberingFormat

FootnotesNumberingRestartType

Represents the different types of numbering restart for footnotes in a section.

Declaration

cs-api-definition
[XamlSerializable]
public NumberingRestartType FootnotesNumberingRestartType { get; set; }

Property Value

NumberingRestartType

HasDifferentFirstPageHeaderFooter

Gets or sets a value indicating whether the section has a different header and footer on the first page.

Declaration

cs-api-definition
[XamlSerializable]
public bool HasDifferentFirstPageHeaderFooter { get; set; }

Property Value

bool

true if the section has a different header and footer on the first page; otherwise, false.

HeaderTopMargin

Gets or sets the top margin for the header in the section properties.

Declaration

cs-api-definition
[XamlSerializable]
public int HeaderTopMargin { get; set; }

Property Value

int

A double representing the top margin in the desired unit of measure.

LineNumbering

Gets or sets the line numbering in the Section.

Declaration

cs-api-definition
[XamlCompositePropertySerializable]
public LineNumbering LineNumbering { get; set; }

Property Value

LineNumbering

The line numbering.

PageMargin

Gets or sets the page margins for the section properties.

Declaration

cs-api-definition
[XamlSerializable]
public Padding PageMargin { get; set; }

Property Value

Padding

The page margins defined for the section. It specifies the space between the content and the edges of the page.

PageOrientation

Gets or sets the page orientation of the section, which determines the layout of the content on the page.

Declaration

cs-api-definition
[XamlSerializable]
public PageOrientation PageOrientation { get; set; }

Property Value

PageOrientation

A value representing the page orientation, which can be either portrait or landscape.

PageSize

Gets or sets the size of the page for the section properties.

Declaration

cs-api-definition
[XamlSerializable]
public Size PageSize { get; set; }

Property Value

Size

A Size object that represents the width and height of the page.

PreviousSectionBreakType

Gets or sets the type of break before the current section.

Declaration

cs-api-definition
[XamlSerializable]
public SectionBreakType PreviousSectionBreakType { get; set; }

Property Value

SectionBreakType

A value that specifies the type of break preceding the section, which can be a type of SectionBreakType enumeration.

Methods

CreateInstance()

Declaration

cs-api-definition
protected override DocumentElementPropertiesBase CreateInstance()

Returns

DocumentElementPropertiesBase

Overrides DocumentElementPropertiesBase.CreateInstance()

InitProperties()

Declaration

cs-api-definition
protected override void InitProperties()

Overrides DocumentElementPropertiesBase.InitProperties()