MultiEditorRowPropertiesCollection.IndexOf(Object) Method

Searches for a specific row item object and returns the zero-based index of the first occurrence within the MultiEditorRow.PropertiesCollection.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

public int IndexOf(
    object rowProperties
)
Public Function IndexOf(
    rowProperties As Object
) As Integer

Parameters

Name Type Description
rowProperties Object

A MultiEditorRowProperties object representing the row item to locate within the collection.

Returns

Type Description
Int32

The zero-based index of the first occurrence of a specific row item within the row item collection, if found; otherwise -1.

Remarks

The IndexOf method enables you to determine where the row item specified by the row parameter is located within the rows collection represented by the MultiEditorRow.PropertiesCollection property. Each row item is a MultiEditorRowProperties class instance representing an individual row properties object for a multi-editor row.

This method searches the row item collection for the specified row item and if found returns the Index value of the first occurrence. If no instance is found, a -1 is returned. The collection of row items is searched forward beginning with the first element and ending with the last one.

Implements

See Also