Compartilhar via


GlobalObjectCollection.IndexOf(GlobalObject) Method

Definition

Gets the position of an object in the collection.

public:
 int IndexOf(Microsoft::VisualStudio::Shell::Design::GlobalObject ^ item);
public int IndexOf (Microsoft.VisualStudio.Shell.Design.GlobalObject item);
member this.IndexOf : Microsoft.VisualStudio.Shell.Design.GlobalObject -> int
Public Function IndexOf (item As GlobalObject) As Integer

Parameters

item
GlobalObject

An item that should have its offset retrieved.

Returns

The position of the object in the collection, or -1 if the object is not in the collection.

Applies to