TableLayoutBox
Measures and arranges a table fragment's row boxes, recalculating grid and row heights and splitting rows when pagination requires it. Continuation fragments can reserve space for rows repeated on each page.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class TableLayoutBox : LayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxTableLayoutBox...
Implements:
Inherited Members
Constructors
Creates a layout box for a table or a fragment created when the table is split.
public TableLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
The table represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
isFragmentbooltrue when the box represents a continuation of a split table.
Creates the original, non-fragment layout box for a table.
public TableLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
The table represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
Properties
Gets the table model represented by this layout box.
public Table AssociatedTable { get; }
Gets whether this box can create layout boxes directly from its content.
protected override bool CanCreateLayoutBoxesFromContent { get; }
Overrides:
Gets the arranged bounds shifted by the space reserved for repeated header rows on a continuation fragment.
public override RectangleF ControlBoundingRectangle { get; }
Overrides:
Gets whether the table's own background has a visible alpha value. Cell backgrounds are represented by their separate cell boxes.
public override bool HasVisualRepresentation { get; }
Overrides:
Methods
Arranges row boxes after any space reserved for repeated header rows and invalidates cached grid coordinates.
Creates a continuation box for the same table and document structure collection.
public override LayoutElement CreateLayoutElement()
A fragment TableLayoutBox.
Overrides:
Measures the table grid and its rows, accounting for row spans, page boundaries, and repeated header rows.
Invalidates the cached table child-box lookups after base measure invalidation.
protected override void OnInvalidateMeasure()
Overrides: