Skip to main content

MVCxSplitterPaneCollection.IndexOf(MVCxSplitterPane) Method

Searches for the specified pane object and returns the zero-based index of the first occurrence within the collection.

Namespace: DevExpress.Web.Mvc

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

Declaration

public int IndexOf(
    MVCxSplitterPane pane
)

Parameters

Name Type Description
pane MVCxSplitterPane

A MVCxSplitterPane object representing the pane to locate in the collection.

Returns

Type Description
Int32

The zero-based index of the first occurrence of the specified pane within the collection, if found; otherwise, it returns negative one (-1).

Remarks

The IndexOf method enables you to determine where a pane specified by the pane parameter is located within the pane collection represented by the current object. The collection of pane objects can be accessed via the SplitterSettings.Panes property of a SplitterSettings object or by using a pane’s SplitterPane.Panes property.

This method searches the pane collection for the specified pane, and if found, returns the index value of the first occurrence. If no instance is found, a negative one (-1) is returned. The collection of panes is searched forward starting with the first element and ending with the last one.

See Also