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
EndnotesFirstNumberProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<int>, SectionProperties> EndnotesFirstNumberProperty
Field Value
Style
|
EndnotesNumberingFormatProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<ListNumberingFormat>, SectionProperties> EndnotesNumberingFormatProperty
Field Value
Style
|
EndnotesNumberingRestartTypeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<NumberingRestartType>, SectionProperties> EndnotesNumberingRestartTypeProperty
Field Value
Style
|
FooterBottomMarginProperty
FootnotesFirstNumberProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<int>, SectionProperties> FootnotesFirstNumberProperty
Field Value
Style
|
FootnotesNumberingFormatProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<ListNumberingFormat>, SectionProperties> FootnotesNumberingFormatProperty
Field Value
Style
|
FootnotesNumberingRestartTypeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<NumberingRestartType>, SectionProperties> FootnotesNumberingRestartTypeProperty
Field Value
Style
|
HasDifferentFirstPageHeaderFooterProperty
HeaderTopMarginProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<int>, SectionProperties> HeaderTopMarginProperty
Field Value
Style
|
LineNumberingProperty
Declaration
public static readonly StylePropertyDefinition<LineNumbering, SectionProperties> LineNumberingProperty
Field Value
PageMarginProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<Padding>, SectionProperties> PageMarginProperty
Field Value
Style
|
PageOrientationProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<PageOrientation>, SectionProperties> PageOrientationProperty
Field Value
Style
|
PageSizeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<Size>, SectionProperties> PageSizeProperty
Field Value
Style
|
PreviousSectionBreakTypeProperty
Declaration
public static readonly StylePropertyDefinition<Nullable<SectionBreakType>, SectionProperties> PreviousSectionBreakTypeProperty
Field Value
Style
|
Properties
ActualPageMargin
Columns
Gets or sets the text columns in the Section.
Declaration
public SectionColumnCollection Columns { get; set; }
Property Value
Section 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
EndnotesFirstNumber
Gets or sets the endnotes starting number.
Declaration
[XamlSerializable(1)]
public int EndnotesFirstNumber { get; set; }
Property Value
System.
|
EndnotesNumberingFormat
Gets or sets the endnotes numbering format.
Declaration
[XamlSerializable]
public ListNumberingFormat EndnotesNumberingFormat { get; set; }
Property Value
EndnotesNumberingRestartType
Gets or sets the type of the endnotes numbering restart.
Declaration
[XamlSerializable]
public NumberingRestartType EndnotesNumberingRestartType { get; set; }
Property Value
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. The page number. |
FooterBottomMargin
Footers
FootnotesFirstNumber
Gets or sets the footnotes starting number.
Declaration
[XamlSerializable(1)]
public int FootnotesFirstNumber { get; set; }
Property Value
System.
|
FootnotesNumberingFormat
Gets or sets the footnotes numbering format.
Declaration
[XamlSerializable]
public ListNumberingFormat FootnotesNumberingFormat { get; set; }
Property Value
FootnotesNumberingRestartType
Gets or sets the type of the footnotes numbering restart.
Declaration
[XamlSerializable]
public NumberingRestartType FootnotesNumberingRestartType { get; set; }
Property Value
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. The header top margin. |
IsEmpty
Gets a value indicating whether the section is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.
|
LineNumbering
Gets or sets the line numbering in the Section.
Declaration
public LineNumbering LineNumbering { get; set; }
Property Value
Line 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
Number
Gets the section number (starting from 1).
Declaration
public int Number { get; }
Property Value
System.
|
PageMargin
PageOrientation
Declaration
[XamlSerializable]
public PageOrientation PageOrientation { get; set; }
Property Value
Telerik.
|
PageSize
Declaration
[XamlSerializable]
public Size PageSize { get; set; }
Property Value
System.
|
PreviousSectionBreakType
Declaration
[XamlSerializable]
public SectionBreakType PreviousSectionBreakType { get; set; }
Property Value
Methods
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another document element to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
Document The Section to copy the properties from. |
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a Section
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
Document The document collection. |
Returns
Layout The new Section |
Overrides
CreateNewElementInstance()
Creates a new Section instance.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
Document 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. The page number. |
Returns
GetHeaderByType(HeaderFooterType)
GetHeaderFooterTypeByPageNumber(Int32)
GetHeaderHeight(Int32)
Gets the height of the header for a page.
Declaration
public float GetHeaderHeight(int pageNumber)
Parameters
System. The page number. |
Returns
System.
|
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. 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
Rad The document. |