Editare

Partajați prin


ToolBar.ToolBarButtonCollection.IList.IndexOf(Object) Method

Definition

Determines the index of a specific item in the collection.

 virtual int System.Collections.IList.IndexOf(System::Object ^ button) = System::Collections::IList::IndexOf;
int IList.IndexOf (object button);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (button As Object) As Integer Implements IList.IndexOf

Parameters

button
Object

The item to locate in the collection.

Returns

The index of button if found in the list; otherwise, -1.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ToolBar.ToolBarButtonCollection is cast to an IList interface.

Applies to