New to Telerik UI for WinForms? Start a free 30-day trial

Resolves a cell's text alignment with the containing table style's paragraph alignment as an additional parent value.

Definition

Constructors

Creates a cell text-alignment property, tracking table changes when the properties belong to a cell.

C#
public TableCellTextAlignmentProperty(TableCellProperties propertyContainer, StylePropertyDefinition<RadTextAlignment?, TableCellProperties> propertyDefinition)
Parameters:propertyContainerTableCellProperties

The cell properties that own this property.

propertyDefinitionStylePropertyDefinition<RadTextAlignment?, TableCellProperties>

The definition of the cell text-alignment property.

Methods

Uses the containing table style's paragraph text alignment as the cell's parent value when it is set.

C#
protected override RadTextAlignment? GetLocalParentValueOverride()
Returns:

RadTextAlignment?

The table-style alignment, or null when the style provides none.

Overrides: StyleProperty<RadTextAlignment?, TableCellProperties>.GetLocalParentValueOverride()