Table
Represents a table within the document model.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class Table : Block
Inheritance: objectDocumentElementBlockTable
Inherited Members
Constructors
Fields
public static readonly StylePropertyDefinition<Color?, TableProperties> BackgroundProperty
public static readonly StylePropertyDefinition<TableBorders, TableProperties> BordersProperty
public static readonly StylePropertyDefinition<Padding?, TableProperties> CellPaddingProperty
public static readonly StylePropertyDefinition<double?, TableProperties> CellSpacingProperty
Represents the size of a column band in a table within the Telerik document model.
public static readonly StylePropertyDefinition<int?, TableProperties> ColumnBandSizeProperty
FlowDirectionProperty
StylePropertyDefinition<FlowDirection?, TableProperties>
public static readonly StylePropertyDefinition<FlowDirection?, TableProperties> FlowDirectionProperty
public static readonly StylePropertyDefinition<RadHorizontalAlignment?, TableProperties> HorizontalAlignmentProperty
public static readonly StylePropertyDefinition<TableLayoutMode?, TableProperties> LayoutModeProperty
public static readonly StylePropertyDefinition<TableWidthUnit, TableProperties> PreferredWidthProperty
Represents the size of a row band in a table, defining the visual layout and appearance of the rows.
public static readonly StylePropertyDefinition<int?, TableProperties> RowBandSizeProperty
public static readonly StylePropertyDefinition<double?, TableProperties> TableIndentProperty
public static readonly StylePropertyDefinition<TableLook, TableProperties> TableLookProperty
public static readonly StylePropertyDefinition<ThemeColorsEnum?, TableProperties> ThemeBackgroundProperty
public static readonly StylePropertyDefinition<string, TableProperties> ThemeFillShadeProperty
public static readonly StylePropertyDefinition<string, TableProperties> ThemeFillTintProperty
Properties
Background
Color
Gets or sets the table background.
[XamlSerializable]
public Color Background { get; set; }
The background.
Gets or sets all borders of the table.
[XamlSerializable]
public TableBorders Borders { get; set; }
The borders.
Gets or sets the cell padding.
[XamlSerializable]
public Padding CellPadding { get; set; }
The cell padding.
Gets or sets the cell spacing.
[XamlSerializable]
public double CellSpacing { get; set; }
The cell spacing.
[XamlSerializable]
public int ColumnBandSize { get; set; }
FlowDirection
FlowDirection
Gets or sets the flow direction of the table contents.
[XamlSerializable]
public FlowDirection FlowDirection { get; set; }
The flow direction.
Gets the grid of the table which keeps information about the rows and columns.
public TableGrid Grid { get; }
The grid.
Gets or sets the horizontal alignment.
[XamlSerializable(RadHorizontalAlignment.Left)]
public RadHorizontalAlignment HorizontalAlignment { get; set; }
The horizontal alignment.
Gets or sets then table layout mode.
[XamlSerializable]
public TableLayoutMode LayoutMode { get; set; }
The layout mode.
Gets or sets the preferred width of the table.
[XamlSerializable]
public TableWidthUnit PreferredWidth { get; set; }
The preferred width.
[XamlSerializable]
public int RowBandSize { get; set; }
Gets the rows.
public TableRowCollection Rows { get; }
The rows.
Gets or sets the table indent.
[XamlSerializable]
public double TableIndent { get; set; }
The table indent.
Gets or sets the table look.
The look of a table defines the components of the conditional formatting which will be applied to it.
[XamlCompositePropertySerializable]
public TableLook TableLook { get; set; }
The table look.
Gets or sets the theme background.
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
The theme background.
Represents the fill shade of a table theme in Telerik's document model.
[XamlSerializable]
public string ThemeFillShade { get; set; }
Represents the tint applied to the theme fill of a table in the Telerik document model.
[XamlSerializable]
public string ThemeFillTint { get; set; }
Methods
Adds a column after the last one in the table.
Copies the properties of a Table instance to the current object.
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
The Table to copy the properties from.
Overrides:
Creates a new TableLayoutBox.
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
The document collection.
Returns:The new TableLayoutBox.
Overrides:
Creates a new instance of the Table class.
protected override DocumentElement CreateNewElementInstance()
The new instance.
Overrides:
Gets the width of the grid column.
public TableWidthUnit GetGridColumnWidth(int gridColumnIndex)
Index of the grid column. This index should not be affected of any merged cells.
Returns:A TableWidthUnit representing the width of the column.
Called after the style of a document element has been changed.
protected override void OnStyleChanged()
Overrides:
Sets the width of the grid column.
public void SetGridColumnWidth(int gridColumnIndex, TableWidthUnit width)
Index of the grid column. This index should not be affected of any merged cells.
widthTableWidthUnitThe width.
Exceptions:gridColumnIndex should be greater than or equal to 0.