ClassSectionLayoutBox
Represents a layout box for a section in Telerik's RadRichTextBox. This class is responsible for managing the layout and rendering of section content during document creation or manipulation.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class SectionLayoutBox : LayoutBox
Inheritance: objectLayoutElementLayoutBoxSectionLayoutBox
Inherited Members
Constructors
SectionLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public SectionLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters
associatedDocumentElement
collection
SectionLayoutBox(DocumentElement, DocumentStructureCollection, bool)
Declaration
public SectionLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool shouldFragmentize)
Parameters
associatedDocumentElement
collection
shouldFragmentize
Properties
AssociatedSection
Gets or sets the associated section for the layout box.
Declaration
public Section AssociatedSection { get; }
Property Value
The associated section.
CanCreateLayoutBoxesFromContent
Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
Overrides
HasVisualRepresentation
Gets a value indicating whether the section layout box has a visual representation.
Declaration
public override bool HasVisualRepresentation { get; }
Property Value
Overrides
IsTopContainer
Gets a value indicating whether the current layout box is the top container in the layout hierarchy.
Declaration
public override bool IsTopContainer { get; }
Property Value
Overrides
PageNumber
Gets the page number associated with the section layout box.
Declaration
public int PageNumber { get; }
Property Value
The page number as an integer value.
Methods
ArrangeOverride(SizeF)
Arranges the LayoutElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CreateLayoutBoxesFromContent(LayoutElementCollection)
Declaration
protected void CreateLayoutBoxesFromContent(LayoutElementCollection fragmentList)
Parameters
fragmentList
CreateLayoutElement()
Creates a new layout element for the section layout box.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
A layout element representing the visual structure of the section.
Overrides
GetFooter()
Gets the footer for this page.
GetFooterContentMargins()
Gets the margin of the footer inside the bottom page margin.
GetFooterHeight()
Gets the height of the footer.
GetHeader()
Gets the header for this page.
GetHeaderContentMargins()
Gets the margin of the header content inside the top page margin.
GetHeaderFooterType()
Gets the type of the header and footer for this page.
Declaration
public HeaderFooterType GetHeaderFooterType()
Returns
GetHeaderHeight()
Gets the height of the header.
MeasureOverride(SizeF)
Measures the space required by the LayoutElement Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the LayoutElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
SetFooter(Footer)
Sets the footer.
Declaration
public void SetFooter(Footer footer)
Parameters
footer
The footer.
SetHeader(Header)
Sets the header.
Declaration
public void SetHeader(Header header)
Parameters
header
The header.