Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#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.

See Also