Skip to main content
All docs
V24.1

FormatRuleCollection<T, TColumnType>.AddUniqueDuplicateRule(TColumnType, AppearanceDefault, FormatConditionUniqueDuplicateType) Method

Applies a format to unique or duplicate values.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public T AddUniqueDuplicateRule(
    TColumnType column,
    AppearanceDefault appearanceDefault,
    FormatConditionUniqueDuplicateType formatType
)

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.

appearanceDefault DevExpress.Utils.AppearanceDefault

The appearance settings that should be applied to the column (row in a vertical grid). This value is assigned to the Appearance property.

formatType FormatConditionUniqueDuplicateType

A value that specifies whether the format is applied to unique or duplicate values. This value is assigned to the FormatType property.

Returns

Type Description
T

A {T} object that specifies a format.

See Also