Udostępnij za pośrednictwem


ControlCollection.IndexOf Method

Determines the index of a specific item in the IList.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Usage

'Usage
Dim instance As ControlCollection
Dim item As ControlElement
Dim returnValue As Integer

returnValue = instance.IndexOf(item)

Syntax

'Declaration
Public Function IndexOf ( _
    item As ControlElement _
) As Integer
public int IndexOf (
    ControlElement item
)
public:
virtual int IndexOf (
    ControlElement^ item
) sealed
public final int IndexOf (
    ControlElement item
)
public final function IndexOf (
    item : ControlElement
) : int

Parameters

  • item
    Specifies the object to locate in the IList.

Return Value

Type :
The index of item if found in the list; otherwise, -1.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

ControlCollection Class
ControlCollection Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.