Gets the index position of the specified Command in the CommandUIItemCollection.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function IndexOf( _ ByVal value As Command _ ) As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- value
- The Command to be located in the collection.
The Command to be located in the collection.
Return Value
Zero-based index position in the collection, or -1 if not found.Index position or -1 if not found
The CommandUIItemCollection will be scanned until the CommandUIItem object associated with the Command is found.
If there are two CommandUIItem objects associated with the same Command then the first CommandUIItem occurrence will be returned.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family