TableProperties
Manages formatting properties for Table elements including borders, shading, alignment, width, cell spacing, and conditional style application with style inheritance.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Styles
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public sealed class TableProperties : DocumentElementPropertiesBase, IElementWithStyle, IPropertiesWithShading
Inheritance: objectDocumentElementPropertiesBaseTableProperties
Implements:
Inherited Members
Methods
Enumerates the style properties.
protected override IEnumerable<IStyleProperty> EnumerateStyleProperties()
The style properties.
Overrides:
Gets specific style property or null.
protected override IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
The property definition.
Returns:Overrides:
Properties
Horizontal alignment of the table within its container, affecting table position on the page.
public IStyleProperty<Alignment?> Alignment { get; }
The default value is Left.
BackgroundColor
IStyleProperty<ThemableColor>
Background color applied beneath any shading pattern, supporting theme-aware colors.
public IStyleProperty<ThemableColor> BackgroundColor { get; }
The color of the background.
Implements:
Border styles for all table edges including outer borders and inside dividers.
public IStyleProperty<TableBorders> Borders { get; }
The top border.
Number of columns in each alternating band when applying conditional column banding styles.
public IStyleProperty<int?> ColumnBanding { get; }
The default value is 0.
Flow direction of cell content within the table; local property that cannot be inherited from styles.
public IStyleProperty<FlowDirection?> FlowDirection { get; }
The default value is LeftToRight.
Indentation added before the leading edge of the table, measured in device-independent pixels (1/96 inch).
public IStyleProperty<double?> Indent { get; }
The default value is 0.
Layout algorithm used to size table columns (AutoFit or FixedWidth); local property that cannot be inherited from styles.
public IStyleProperty<TableLayoutType?> LayoutType { get; }
The default value is AutoFit.
Specifies which conditional style components to apply (first row, last row, banded rows, etc.); local property that cannot be inherited from styles.
public IStyleProperty<TableLooks?> Looks { get; }
The default value is BandedRows | BandedColumns.
Determines whether this floating table allows overlapping with other floating tables; local property that cannot be inherited from styles.
public IStyleProperty<bool?> Overlap { get; }
The default value is true.
Preferred width of the table; local property that cannot be inherited from styles.
public IStyleProperty<TableWidthUnit> PreferredWidth { get; }
The preferred width.
Number of rows in each alternating band when applying conditional row banding styles.
public IStyleProperty<int?> RowBanding { get; }
The default value is 0.
Pattern used to lay the foreground color over the background color, defining the visual shading style.
public IStyleProperty<ShadingPattern?> ShadingPattern { get; }
The default value is Clear
Implements:
ShadingPatternColor
IStyleProperty<ThemableColor>
Foreground pattern color layered over the background color when a shading pattern is applied.
public IStyleProperty<ThemableColor> ShadingPatternColor { get; }
The color of the pattern.
Implements:
TableCellPadding
IStyleProperty<Padding>
Default padding applied to all cells within the table unless overridden at the cell level.
public IStyleProperty<Padding> TableCellPadding { get; }
The table cell padding.
Spacing between adjacent cells and table edges, measured in device-independent pixels (1/96 inch).
public IStyleProperty<double?> TableCellSpacing { get; }
The default value is 0.