Back to Devexpress

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

windowsforms-devexpress-dot-xtraeditors-dot-formatrulecollection-2-dot-add-x28-1-devexpress-dot-xtraeditors-dot-formatconditionrulebase-x29.md

latest1.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public T Add(
    TColumnType column,
    FormatConditionRuleBase rule
)
vb
Public Function Add(
    column As TColumnType,
    rule As FormatConditionRuleBase
) As T

Parameters

NameTypeDescription
columnTColumnType

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

TypeDescription
T

A {T} object that specifies a format.

|

See Also

FormatRuleCollection<T, TColumnType> Class

FormatRuleCollection<T, TColumnType> Members

DevExpress.XtraEditors Namespace