次の方法で共有


NamedComponentCollection.IndexOfName(String) Method

Definition

Gets the index of the NamedComponent, identified by name, in the collection.

public int IndexOfName (string name);
member this.IndexOfName : string -> int
Public Function IndexOfName (name As String) As Integer

Parameters

name
String

The name to be located in the collection.

Returns

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

Applies to