Table
Grid-based block element organizing content into rows and cells, supporting cell spanning, borders, shading, and automatic grid layout calculation.
Definition
Namespace:Telerik.Documents.Flow.Model
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public sealed class Table : BlockBase, IElementWithStyle, IElementWithProperties
Inheritance: objectDocumentElementBaseBlockBaseTable
Implements:
Inherited Members
Constructors
Initializes a new Table pre-populated with the specified number of rows and columns, each containing an empty cell.
public Table(RadFlowDocument document, int rows, int columns)
The document.
rowsintThe number of rows.
columnsintThe number of columns.
Initializes a new empty Table with no rows or columns in the specified document.
public Table(RadFlowDocument document)
The document in which the element will be added.
Fields
Style property definition for table horizontal alignment within the page or column.
public static readonly StylePropertyDefinition<Alignment?> AlignmentPropertyDefinition
BackgroundColorPropertyDefinition
StylePropertyDefinition<ThemableColor>
Style property definition for table background fill color applied behind all cells.
public static readonly StylePropertyDefinition<ThemableColor> BackgroundColorPropertyDefinition
Style property definition for the number of columns in each alternating column band when applying conditional table formatting.
public static readonly StylePropertyDefinition<int?> ColumnBandingPropertyDefinition
Style property definition for cell flow direction, controlling left-to-right or right-to-left cell ordering and content layout.
public static readonly StylePropertyDefinition<FlowDirection?> FlowDirectionPropertyDefinition
Style property definition for horizontal indentation added before the table's leading edge in device independent pixels (1/96 inch).
public static readonly StylePropertyDefinition<double?> IndentPropertyDefinition
Style property definition for table layout algorithm, controlling whether column widths are automatically calculated or use fixed values.
public static readonly StylePropertyDefinition<TableLayoutType?> LayoutTypePropertyDefinition
Style property definition for conditional formatting components (first/last row/column, banded rows/columns) applied from the table style.
public static readonly StylePropertyDefinition<TableLooks?> LooksPropertyDefinition
Style property definition for controlling whether floating tables can overlap this table's area when positioned.
public static readonly StylePropertyDefinition<bool?> OverlapPropertyDefinition
Style property definition for table preferred width, supporting auto, fixed, and percentage-based width specifications.
public static readonly StylePropertyDefinition<TableWidthUnit> PreferredWidthPropertyDefinition
Style property definition for the number of rows in each alternating row band when applying conditional table formatting.
public static readonly StylePropertyDefinition<int?> RowBandingPropertyDefinition
ShadingPatternColorPropertyDefinition
StylePropertyDefinition<ThemableColor>
Style property definition for shading pattern color, controlling the foreground color used in patterned background fills.
public static readonly StylePropertyDefinition<ThemableColor> ShadingPatternColorPropertyDefinition
Style property definition for shading pattern, controlling the fill pattern applied to the table background.
public static readonly StylePropertyDefinition<ShadingPattern?> ShadingPatternPropertyDefinition
Style property definition for table borders, controlling the width, color, and pattern for outer and inner border lines.
public static readonly StylePropertyDefinition<TableBorders> TableBordersPropertyDefinition
Style property definition for default cell padding applied to all cells unless overridden at the cell level.
public static readonly StylePropertyDefinition<Padding> TableCellPaddingPropertyDefinition
Style property definition for spacing between adjacent cells and between cells and table edges in device independent pixels (1/96 inch).
public static readonly StylePropertyDefinition<double?> TableCellSpacingPropertyDefinition
Properties
Horizontal alignment of the table within the page or column, controlling left, center, or right positioning.
public Alignment Alignment { get; set; }
The default value is Left.
Border styles for the table's edges and internal dividers, controlling width, color, and pattern for outer and inner borders.
public TableBorders Borders { get; set; }
The borders.
Flow direction for cell content and table layout, controlling left-to-right or right-to-left cell ordering and text direction.
public FlowDirection FlowDirection { get; set; }
The default value is LeftToRight.
Number of columns in the calculated table grid, accounting for cell column spans; automatically computed from table structure.
public int GridColumnsCount { get; }
The grid columns count.
Number of rows in the calculated table grid, accounting for cell row spans; automatically computed from table structure.
public int GridRowsCount { get; }
The grid rows count.
Indicates whether cell spacing is applied, determined by checking if TableCellSpacing exceeds zero.
public bool HasCellSpacing { get; }
True if there is cell spacing.
Distance added before the leading edge of the table in device independent pixels (1/96 inch), shifting the table horizontally.
public double Indent { get; set; }
The default value is 0.
Layout algorithm applied to the table, controlling whether column widths are automatically calculated (AutoFit) or use fixed widths.
public TableLayoutType LayoutType { get; set; }
The default value is AutoFit.
Controls which conditional formatting components of the table style are applied, such as first/last row, first/last column, and banded rows/columns.
public TableLooks Looks { get; set; }
The default value is BandedRows | BandedColumns.
Controls whether this floating table allows other floating tables to overlap its area when positioned on the page.
public bool Overlap { get; set; }
The default value is true.
Preferred width specification for the table, supporting auto, fixed, and percentage-based widths relative to the container.
public TableWidthUnit PreferredWidth { get; set; }
The width of the preferred.
Table formatting properties, providing access to alignment, borders, spacing, padding, width, layout algorithm, and flow direction settings.
public TableProperties Properties { get; }
The properties.
Collection of rows contained in this table, providing add, insert, and remove operations for table structure.
public TableRowCollection Rows { get; }
The rows.
Background shading applied to the entire table, controlling fill color, pattern, and pattern color behind all cells.
public Shading Shading { get; }
The shading.
Table style identifier applied to this table, enabling consistent formatting via style inheritance from the document's style repository.
public string StyleId { get; set; }
The style id.
Implements:
Default padding for all cells in this table, defining the space between cell borders and content unless overridden at the cell level.
public Padding TableCellPadding { get; set; }
The table cell padding.
Space between adjacent cells and between cells and table edges in device independent pixels (1/96 inch), creating visual separation.
public double TableCellSpacing { get; set; }
The table cell spacing.
Methods
Creates a deep copy of this table including all rows, cells, and formatting properties, associated to the same document.
Creates a deep copy of this table including all rows, cells, and formatting properties, associated to the specified document for cross-document copying.
public Table Clone(RadFlowDocument document)
The document to which the cloned element should be associated.
Returns:The cloned element.
Called when child element is added.
protected override void OnChildAdded(DocumentElementBase child)
The child element.
Overrides:
Called when child element is removed.
protected override void OnChildRemoved(DocumentElementBase child)
The child element.
Overrides: