TableCellLayoutBox
Measures and arranges a table cell's block content within cell padding, vertical alignment, and pagination constraints.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class TableCellLayoutBox : FlowOrderedLayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxFlowOrderedLayoutBoxTableCellLayoutBox...
Implements:
Inherited Members
Constructors
Creates a layout box for a table cell or a fragment produced when the cell content is split.
public TableCellLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
The table cell represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
isFragmentbooltrue when the box represents a continuation of a split cell.
Creates the original, non-fragment layout box for a table cell.
public TableCellLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
The table cell represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
Properties
Gets the table cell model represented by this layout box.
public TableCell AssociatedTableCell { get; }
Gets whether the cell background has a visible alpha value.
public override bool HasVisualRepresentation { get; }
Overrides:
Gets whether this cell currently provides the vertical-growth policy for its contents. The table layout can enable this role temporarily while sizing row-spanning cells.
public override bool IsTopContainer { get; }
Overrides:
Methods
Arranges child blocks inside the cell padding and applies vertical alignment when the cell content remains in its first box.
Determines whether the cell's current container or row-span height restriction can accommodate additional content.
protected override bool? CanGrowVerticallyOverride(float desiredHeight)
The height requested by the cell contents, including accumulated layout growth.
Returns:bool?
true when growth is unrestricted or fits the restriction;
false when it exceeds the restriction;
null only when currentY is zero and desiredHeight exceeds the restriction.
Cell padding contributes to currentY, so an oversized first block in a padded cell can return false instead.
Overrides:
Creates a continuation box for the same table cell and document structure collection.
public override LayoutElement CreateLayoutElement()
A fragment TableCellLayoutBox.
Overrides:
Measures the cell's block content and repeats internal passes until floating-block placement is complete. In paged layout, it also verifies that affected floating blocks are included.
Measures child blocks inside the cell padding, splitting content when page height is insufficient and applying row-span height rules.