ClassDocumentLayoutBox
Represents the layout box for a document in the Telerik layout system. This class is responsible for managing the visual arrangement of document elements within a defined layout region.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentLayoutBox : LayoutBox
Inheritance: objectLayoutElementLayoutBoxDocumentLayoutBox
Inherited Members
Constructors
DocumentLayoutBox(RadDocument)
Declaration
public DocumentLayoutBox(RadDocument ownerDocument)
Parameters
ownerDocument
Properties
AssociatedDocument
Gets the associated document for the current layout box.
Declaration
public RadDocument AssociatedDocument { get; }
Property Value
The associated document if one exists; otherwise, null.
CanCreateLayoutBoxesFromContent
Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
Overrides
HasVisualRepresentation
Gets a value indicating whether the document layout box has a visual representation.
Declaration
public override bool HasVisualRepresentation { get; }
Property Value
Overrides
OwnerDocument
Gets the document that owns the current layout box.
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 layout element for the document layout box.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
A LayoutElement instance representing the created layout element.
Overrides
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.
UpdateLayout()
Updates the layout for the document layout box, recalculating its size and position.
Declaration
public void UpdateLayout()