ClassTableCellProperties
Property container for TableCell formatting including borders, shading, padding, spanning, and alignment; supports style inheritance.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Styles
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public sealed class TableCellProperties : DocumentElementPropertiesBase, IElementWithStyle, IPropertiesWithShading
Inheritance: objectDocumentElementPropertiesBaseTableCellProperties
Implements:
Inherited Members
Properties
BackgroundColor
Gets or sets the background color applied beneath any shading pattern; supports theme colors.
Declaration
public IStyleProperty<ThemableColor> BackgroundColor { get; }
Property Value
IStyleProperty<ThemableColor>
The color of the background.
Implements
Borders
Gets or sets the cell borders including outer edges, inside dividers, and diagonal lines; inheritable from styles.
Declaration
public IStyleProperty<TableCellBorders> Borders { get; }
Property Value
IStyleProperty<TableCellBorders>
The borders.
CanWrapContent
Gets local style property used to get or set a value indicating whether the content can be wrapped during the table layout. This property cannot be derived from a style.
Declaration
public IStyleProperty<bool?> CanWrapContent { get; }
Property Value
The default value is true.
ColumnSpan
Gets or sets the number of table columns this cell spans horizontally; local-only property not inherited from styles; defaults to 1.
Declaration
public IStyleProperty<int?> ColumnSpan { get; }
Property Value
The default value is 1.
IgnoreCellMarkerInRowHeightCalculation
Gets local style property used to get or set a value indicating whether cell marker will be ignored when row height is calculated. This property cannot be derived from a style.
Declaration
public IStyleProperty<bool?> IgnoreCellMarkerInRowHeightCalculation { get; }
Property Value
The default value is false.
Padding
Gets or sets the spacing between cell content and cell borders on all four sides.
Declaration
public IStyleProperty<Padding> Padding { get; }
Property Value
IStyleProperty<Padding>
The table cell padding.
PreferredWidth
Gets local style property used to get or set the preferred width. This property cannot be derived from a style.
Declaration
public IStyleProperty<TableWidthUnit> PreferredWidth { get; }
Property Value
IStyleProperty<TableWidthUnit>
The preferred width.
RowSpan
Gets local style property used to get or set the row span. This property cannot be derived from a style.
Declaration
public IStyleProperty<int?> RowSpan { get; }
Property Value
The default value is 1.
ShadingPattern
Gets or sets the pattern style applied over the background using the pattern color, such as stripes, crosses, or percentage fills; defaults to Clear.
Declaration
public IStyleProperty<ShadingPattern?> ShadingPattern { get; }
Property Value
IStyleProperty<ShadingPattern?>
The default value is Clear
Implements
ShadingPatternColor
Gets or sets the foreground color for the shading pattern overlay; supports theme colors.
Declaration
public IStyleProperty<ThemableColor> ShadingPatternColor { get; }
Property Value
IStyleProperty<ThemableColor>
The color of the pattern.
Implements
TextDirection
Gets local style property used to get or set the text direction. This property cannot be derived from a style.
Declaration
public IStyleProperty<TextDirection> TextDirection { get; }
Property Value
The text direction.
VerticalAlignment
Gets local style property used to get or set the vertical alignment. This property cannot be derived from a style.
Declaration
public IStyleProperty<VerticalAlignment?> VerticalAlignment { get; }
Property Value
IStyleProperty<VerticalAlignment?>
The default value is Top.
Methods
EnumerateStyleProperties()
Enumerates the style properties.
Declaration
protected override IEnumerable<IStyleProperty> EnumerateStyleProperties()
Returns
The style properties.
Overrides
GetStylePropertyOverride(IStylePropertyDefinition)
Gets specific style property or null.
Declaration
protected override IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
Parameters
propertyDefinition
The property definition.
Returns
Overrides