New to Telerik Document ProcessingStart a free 30-day trial

Property container for TableCell formatting including borders, shading, padding, spanning, and alignment; supports style inheritance.

Definition

Methods

Enumerates the style properties.

C#
protected override IEnumerable<IStyleProperty> EnumerateStyleProperties()
Returns:

IEnumerable<IStyleProperty>

The style properties.

Overrides: DocumentElementPropertiesBase.EnumerateStyleProperties()

Gets specific style property or null.

C#
protected override IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
Parameters:propertyDefinitionIStylePropertyDefinition

The property definition.

Returns:

IStyleProperty

Overrides: DocumentElementPropertiesBase.GetStylePropertyOverride(IStylePropertyDefinition)

Properties

Gets or sets the background color applied beneath any shading pattern; supports theme colors.

C#
public IStyleProperty<ThemableColor> BackgroundColor { get; }
Property Value:

The color of the background.

Implements: IPropertiesWithShading.BackgroundColor

Gets or sets the cell borders including outer edges, inside dividers, and diagonal lines; inheritable from styles.

C#
public IStyleProperty<TableCellBorders> Borders { get; }
Property Value:

The borders.

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.

C#
public IStyleProperty<bool?> CanWrapContent { get; }
Property Value:

The default value is true.

Gets or sets the number of table columns this cell spans horizontally; local-only property not inherited from styles; defaults to 1.

C#
public IStyleProperty<int?> ColumnSpan { get; }
Property Value:

The default value is 1.

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.

C#
public IStyleProperty<bool?> IgnoreCellMarkerInRowHeightCalculation { get; }
Property Value:

The default value is false.

Gets or sets the spacing between cell content and cell borders on all four sides.

C#
public IStyleProperty<Padding> Padding { get; }
Property Value:

The table cell padding.

Gets local style property used to get or set the preferred width. This property cannot be derived from a style.

C#
public IStyleProperty<TableWidthUnit> PreferredWidth { get; }
Property Value:

The preferred width.

Gets local style property used to get or set the row span. This property cannot be derived from a style.

C#
public IStyleProperty<int?> RowSpan { get; }
Property Value:

The default value is 1.

Gets or sets the pattern style applied over the background using the pattern color, such as stripes, crosses, or percentage fills; defaults to Clear.

C#
public IStyleProperty<ShadingPattern?> ShadingPattern { get; }
Property Value:

The default value is Clear

Implements: IPropertiesWithShading.ShadingPattern

Gets or sets the foreground color for the shading pattern overlay; supports theme colors.

C#
public IStyleProperty<ThemableColor> ShadingPatternColor { get; }
Property Value:

The color of the pattern.

Implements: IPropertiesWithShading.ShadingPatternColor

Gets local style property used to get or set the text direction. This property cannot be derived from a style.

C#
public IStyleProperty<TextDirection> TextDirection { get; }
Property Value:

The text direction.

Gets local style property used to get or set the vertical alignment. This property cannot be derived from a style.

C#
public IStyleProperty<VerticalAlignment?> VerticalAlignment { get; }
Property Value:

The default value is Top.