Skip to main content
A newer version of this page is available. .

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.v19.2.dll

Declaration

public int IndexOf(
    object rowProperties
)

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IndexOf(Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also