Skip to main content
A newer version of this page is available. .
All docs
V21.2

FormatRuleCollection<T, TColumnType>.Add(TColumnType, FormatConditionRuleBase) Method

Applies a format based on the specified condition and associates it with the specified column (row in a vertical grid).

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

public T Add(
    TColumnType column,
    FormatConditionRuleBase rule
)

Parameters

Name Type Description
column TColumnType

A {TColumnType} object that specifies a column (row in a vertical grid) to which the format should be applied.

rule FormatConditionRuleBase

A FormatConditionRuleBase descendant.

Returns

Type Description
T

A {T} object that specifies a format.

See Also