Skip to main content

WorkTimeRulesCollection.IndexOf(RuleBase) Method

Returns the specified rule’s position in the collection.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public int IndexOf(
    RuleBase rule
)

#Parameters

Name Type Description
rule RuleBase

A rule object.

#Returns

Type Description
Int32

Specifies the rule’s position in the collection. -1 if the collection doesn’t contain the specified rule.

See Also