Class Section
A block-level flow content element used for grouping other Block elements.
Inherited Members
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class Section : BlockContainerBase, IBlockContainer, IContainChildDocument
Constructors
Section()
Section(Section)
Initializes a new instance of the Section class by copying the properties from another instance.
Declaration
public Section(Section originalSection)
Parameters
Section
originalSection
The original section. |
Fields
ColumnsProperty
Declaration
public static readonly StylePropertyDefinition<SectionColumnCollection, SectionProperties> ColumnsProperty
Field Value
StylePropertyDefinition<SectionColumnCollection, SectionProperties>
|
EndnotesFirstNumberProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<int>, SectionProperties> EndnotesFirstNumberProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Int32>, SectionProperties>
|
EndnotesNumberingFormatProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<ListNumberingFormat>, SectionProperties> EndnotesNumberingFormatProperty
Field Value
StylePropertyDefinition<System.Nullable<ListNumberingFormat>, SectionProperties>
|
EndnotesNumberingRestartTypeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<NumberingRestartType>, SectionProperties> EndnotesNumberingRestartTypeProperty
Field Value
StylePropertyDefinition<System.Nullable<NumberingRestartType>, SectionProperties>
|
FooterBottomMarginProperty
FootnotesFirstNumberProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<int>, SectionProperties> FootnotesFirstNumberProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Int32>, SectionProperties>
|
FootnotesNumberingFormatProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<ListNumberingFormat>, SectionProperties> FootnotesNumberingFormatProperty
Field Value
StylePropertyDefinition<System.Nullable<ListNumberingFormat>, SectionProperties>
|
FootnotesNumberingRestartTypeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<NumberingRestartType>, SectionProperties> FootnotesNumberingRestartTypeProperty
Field Value
StylePropertyDefinition<System.Nullable<NumberingRestartType>, SectionProperties>
|
HasDifferentFirstPageHeaderFooterProperty
HeaderTopMarginProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<int>, SectionProperties> HeaderTopMarginProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Int32>, SectionProperties>
|
LineNumberingProperty
Declaration
public static readonly StylePropertyDefinition<LineNumbering, SectionProperties> LineNumberingProperty
Field Value
StylePropertyDefinition<LineNumbering, SectionProperties>
|
PageMarginProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<Padding>, SectionProperties> PageMarginProperty
Field Value
StylePropertyDefinition<System.Nullable<Padding>, SectionProperties>
|
PageOrientationProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<PageOrientation>, SectionProperties> PageOrientationProperty
Field Value
StylePropertyDefinition<System.Nullable<Telerik.Windows.Documents.Model.PageOrientation>, SectionProperties>
|
PageSizeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<Size>, SectionProperties> PageSizeProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Windows.Size>, SectionProperties>
|
PreviousSectionBreakTypeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<SectionBreakType>, SectionProperties> PreviousSectionBreakTypeProperty
Field Value
StylePropertyDefinition<System.Nullable<SectionBreakType>, SectionProperties>
|
Properties
ActualPageMargin
Columns
Gets or sets the text columns in the Section.
Declaration
public SectionColumnCollection Columns { get; set; }
Property Value
SectionColumnCollection
The section columns. |
ColumnsSerializationData
This property supports XAML serialization infrastructure and is not intended to be used directly from your code.
Declaration
[XamlCompositePropertySerializable]
public SectionColumnCollectionSerializationData ColumnsSerializationData { get; set; }
Property Value
SectionColumnCollectionSerializationData
|
EndnotesFirstNumber
Gets or sets the endnotes starting number.
Declaration
[XamlSerializable(1)]
public int EndnotesFirstNumber { get; set; }
Property Value
System.Int32
|
EndnotesNumberingFormat
Gets or sets the endnotes numbering format.
Declaration
[XamlSerializable]
public ListNumberingFormat EndnotesNumberingFormat { get; set; }
Property Value
ListNumberingFormat
|
EndnotesNumberingRestartType
Gets or sets the type of the endnotes numbering restart.
Declaration
[XamlSerializable]
public NumberingRestartType EndnotesNumberingRestartType { get; set; }
Property Value
NumberingRestartType
|
FirstPageNumber
Gets or sets the page number that appears on the first page of the section.
Declaration
[XamlSerializable(null)]
public Nullable<int> FirstPageNumber { get; set; }
Property Value
System.Nullable<System.Int32>
The page number. |
FooterBottomMargin
Footers
FootnotesFirstNumber
Gets or sets the footnotes starting number.
Declaration
[XamlSerializable(1)]
public int FootnotesFirstNumber { get; set; }
Property Value
System.Int32
|
FootnotesNumberingFormat
Gets or sets the footnotes numbering format.
Declaration
[XamlSerializable]
public ListNumberingFormat FootnotesNumberingFormat { get; set; }
Property Value
ListNumberingFormat
|
FootnotesNumberingRestartType
Gets or sets the type of the footnotes numbering restart.
Declaration
[XamlSerializable]
public NumberingRestartType FootnotesNumberingRestartType { get; set; }
Property Value
NumberingRestartType
|
HasDifferentFirstPageHeaderFooter
Headers
Gets or sets the headers.
Declaration
[XamlCompositePropertySerializable]
public Headers Headers { get; set; }
Property Value
Headers
The headers. |
HeaderTopMargin
Gets or sets the header top margin.
Declaration
[XamlSerializable(48)]
public int HeaderTopMargin { get; set; }
Property Value
System.Int32
The header top margin. |
IsEmpty
Gets a value indicating whether the section is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
LineNumbering
Gets or sets the line numbering in the Section.
Declaration
public LineNumbering LineNumbering { get; set; }
Property Value
LineNumbering
The line numbering. |
LineNumberingSerializationData
This property supports XAML serialization infrastructure and is not intended to be used directly from your code.
Declaration
[XamlCompositePropertySerializable]
public SectionLineNumberingSerializationData LineNumberingSerializationData { get; set; }
Property Value
SectionLineNumberingSerializationData
|
Number
Gets the section number (starting from 1).
Declaration
public int Number { get; }
Property Value
System.Int32
|
PageMargin
PageOrientation
Declaration
[XamlSerializable]
public PageOrientation PageOrientation { get; set; }
Property Value
Telerik.Windows.Documents.Model.PageOrientation
|
PageSize
Declaration
[XamlSerializable]
public Size PageSize { get; set; }
Property Value
System.Windows.Size
|
PreviousSectionBreakType
Declaration
[XamlSerializable]
public SectionBreakType PreviousSectionBreakType { get; set; }
Property Value
SectionBreakType
|
Methods
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another document element to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
DocumentElement
fromElement
The Section to copy the properties from. |
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a SectionLayoutBox for the element.
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
DocumentStructureCollection
documentCollection
The document collection. |
Returns
LayoutBox
The new SectionLayoutBox. |
Overrides
CreateNewElementInstance()
Creates a new Section instance.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
DocumentElement
The new instance. |
Overrides
GetFooterByPageNumber(Int32)
GetFooterByType(HeaderFooterType)
GetFooterHeight(Int32)
GetHeaderByPageNumber(Int32)
Gets the header by page number.
Declaration
public Header GetHeaderByPageNumber(int pageNumber)
Parameters
System.Int32
pageNumber
The page number. |
Returns
Header
|
GetHeaderByType(HeaderFooterType)
GetHeaderFooterTypeByPageNumber(Int32)
GetHeaderHeight(Int32)
Gets the height of the header for a page.
Declaration
public float GetHeaderHeight(int pageNumber)
Parameters
System.Int32
pageNumber
The page number. |
Returns
System.Single
|
IsFooterLinkedToPrevious(HeaderFooterType)
IsHeaderLinkedToPrevious(HeaderFooterType)
LinkFooterToPrevious(HeaderFooterType)
LinkHeaderToPrevious(HeaderFooterType)
OnChildDocumentContainerChanged()
Declaration
public void OnChildDocumentContainerChanged()
OnChildDocumentContainerChanging()
Declaration
public void OnChildDocumentContainerChanging()
OnHeadersFootersChanged(EventArgs)
OnParentChanged()
SetFooterByPageNumber(Int32, Footer)
SetFooterByType(HeaderFooterType, Footer)
SetHeaderByPageNumber(Int32, Header)
Sets the header by page number.
Declaration
public void SetHeaderByPageNumber(int pageNumber, Header header)
Parameters
System.Int32
pageNumber
The page number. |
Header
header
The header. |
SetHeaderByType(HeaderFooterType, Header)
SetMainDocument(RadDocument)
Sets the main document. This method is used to link the headers and footers in a section with the main body document.
Declaration
public void SetMainDocument(RadDocument document)
Parameters
RadDocument
document
The document. |