Skip to main content
All docs
V26.1
  • WorkTimeRulesCollection.IndexOf(RuleBase) Method

    Returns the specified rule’s position in the collection.

    Namespace: DevExpress.Web.ASPxGantt

    Assembly: DevExpress.Web.ASPxGantt.v26.1.dll

    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