GlobalObjectCollection.IndexOf(GlobalObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.