SplitterPaneCollection.IndexOfName(String) Method
Searches for a collection item object specified by the value of its SplitterPane.Name property, and returns the zero-based index of the first occurrence within the item collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String value representing the SplitterPane.Name property value of the required item. |
Returns
Type | Description |
---|---|
Int32 | The zero-based index of the first occurrence of the specified item within the item collection, if found; otherwise, negative one (-1). |
Remarks
The IndexOfName method enables you to determine where a pane object specified by the SplitterPane.Name property value is located within the item collection represented by the current object. The collection of pane objects can be accessed via the ASPxSplitter.Panes property of a splitter control.
This method searches the item collection for the specified pane, and if found, returns the index value of the first occurrence. If no instance is found, negative one (-1) is returned. The collection of items is searched forward starting with the first element, and ending with the last one.