Back to Devexpress

DataValidationCollection.IndexOf(DataValidation) Method

officefileapi-devexpress-dot-spreadsheet-dot-datavalidationcollection-dot-indexof-x28-devexpress-dot-spreadsheet-dot-datavalidation-x29.md

latest1.6 KB
Original Source

DataValidationCollection.IndexOf(DataValidation) Method

Returns the zero-based index of the specified element in the collection.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
int IndexOf(
    DataValidation item
)
vb
Function IndexOf(
    item As DataValidation
) As Integer

Parameters

NameTypeDescription
itemDataValidation

A DataValidation item to locate in the collection.

|

Returns

TypeDescription
Int32

An integer value that is the position of the specified element in the collection.

|

Remarks

If the specified element is not found in the collection, this method returns -1.

See Also

DataValidationCollection Interface

DataValidationCollection Members

DevExpress.Spreadsheet Namespace