ערוך

שתף באמצעות


DataGridViewComboBoxCell.ObjectCollection.IndexOf(Object) Method

Definition

Returns the index of the specified item in the collection.

public:
 virtual int IndexOf(System::Object ^ value);
public int IndexOf (object value);
public int IndexOf (object? value);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (value As Object) As Integer

Parameters

value
Object

An object representing the item to locate in the collection.

Returns

The zero-based index of the value parameter if it is found in the collection; otherwise, -1.

Implements

Exceptions

value is null.

Applies to

See also