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