Compartir a través de


NamedComponentCollection.IndexOf(String) Method

Definition

Gets the index of the identified NamedComponent in the collection.

public int IndexOf (string id);
override this.IndexOf : string -> int
Public Function IndexOf (id As String) As Integer

Parameters

id
String

The identifier of the searched component.

Returns

The zero-based index at which the component is at the collection, if found; otherwise, -1.

Applies to