Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: 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