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

FormatRuleCollection<T, TColumnType>.IndexOfRule(FormatRuleBase) Method

Returns the zero-based index of the specified rule in the collection.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll

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

Declaration

public int IndexOfRule(
    FormatRuleBase rule
)

Parameters

Name Type Description
rule FormatRuleBase

An object to locate in the collection.

Returns

Type Description
Int32

An integer value that specifies the position of the rule in the collection.

See Also