ClassTable
Container for tabular content with rows and cells; lays out columns, borders, spacing, and background for rendering in a document.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Editing.Tables
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class Table : IBlockElement, IStructuralElement
Inheritance: objectTable
Implements:
Constructors
Properties
Background
Gets or sets the background color painted behind the entire table.
Declaration
public ColorBase Background { get; set; }
Property Value
The background color of the table, or null for transparent background.
BorderCollapse
Gets or sets whether adjacent cell borders merge (Collapse) or remain distinct with spacing (Separate).
Declaration
public BorderCollapse BorderCollapse { get; set; }
Property Value
The border collapse behavior for the table.
BorderSpacing
Gets or sets the spacing between adjacent cell borders when BorderCollapse is Separate; ignored when Collapse.
Declaration
public double BorderSpacing { get; set; }
Property Value
The border spacing value in device-independent pixels. Must be greater than or equal to 0.
Borders
Gets or sets the border definitions drawn around the table's outer rectangle.
Declaration
public TableBorders Borders { get; set; }
Property Value
The table borders configuration.
DefaultCellProperties
Gets the fallback cell properties applied when specific cells do not override them.
Declaration
public CellProperties DefaultCellProperties { get; }
Property Value
The default cell properties including padding, borders, and background settings.
DesiredSize
Gets the size computed by the last measurement, including borders and spacing.
Declaration
public Size DesiredSize { get; }
Property Value
The desired size required to display the table with its current content.
Implements
HasOpenMarkedContent
Gets a value indicating whether this table instance has any open marked content that requires closing.
Declaration
public bool HasOpenMarkedContent { get; }
Property Value
true if this instance has open marked content; otherwise, false.
Implements
HasPendingContent
Gets a value indicating whether some rows or cells could not fit in the last layout and must continue later.
Declaration
public bool HasPendingContent { get; }
Property Value
true if there is pending content that requires additional space; otherwise, false.
Implements
HorizontalAlignment
Gets or sets how the table is positioned horizontally within the available width.
Declaration
public TableHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
The horizontal alignment value that determines table positioning.
LayoutType
Gets or sets the column width calculation mode used during measurement.
Declaration
public TableLayoutType LayoutType { get; set; }
Property Value
The table layout type that controls how the table calculates column widths.
Margin
Gets or sets outer margins around the table that separate it from surrounding content.
Declaration
public Thickness Margin { get; set; }
Property Value
The margin thickness values for all sides of the table.
Rows
Gets the collection of rows in this table; use to add, remove, or access rows.
Declaration
public TableRowCollection Rows { get; }
Property Value
The collection of table rows.
StructureTag
Gets or sets the StructureTag associated with this element.
Declaration
public StructureElement StructureTag { get; set; }
Property Value
Implements
Methods
Draw(FixedContentEditor, Rect)
Draw the table into the specified editor within the given bounding rectangle.
Declaration
public void Draw(FixedContentEditor editor, Rect boundingRect)
Parameters
editor
The editor.
boundingRect
The bounding rect.
Implements
Measure()
Measure the table with infinite available size and return the desired size.
Measure(Size)
Measure the table with the specified available size and return the desired size.
Measure(Size, CancellationToken)
Measure the table with the specified available size and cancellation token.
Declaration
public Size Measure(Size availableSize, CancellationToken cancellationToken)
Parameters
availableSize
The available size.
cancellationToken
The cancellation token used to cancel the operation.
Returns
The result size.
Implements