Tab
A newer version of this page is available. Switch to the current version.

ListBoxColumnCollection.IndexOf(ListBoxColumn) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public int IndexOf(
    ListBoxColumn column
)
Public Function IndexOf(
    column As ListBoxColumn
) As Integer

Parameters

Name Type Description
column ListBoxColumn

A ListBoxColumn object representing the column to locate in the collection.

Returns

Type Description
Int32

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

Remarks

The IndexOf method lets you find the column specified by the column parameter within the current collection.

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

See Also