Returns the index identifying the location of a specified menu item in the receiver.
Original signature is '- (NSInteger)indexOfItem:(NSMenuItem *)anObject'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public virtual NSInteger IndexOfItem( NSMenuItem anObject )
Public Overridable Function IndexOfItem ( _ anObject As NSMenuItem _ ) As NSInteger
public: virtual NSInteger IndexOfItem( NSMenuItem^ anObject )

- anObject (NSMenuItem)
- A menu item—that is an object conforming to the NSMenuItem protocol.

The integer index of the menu item or, if no such menu item is in the menu, –1.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)