Returns the index of the specified menu item.
Original signature is '- (NSInteger)indexOfItem:(NSMenuItem *)anObject'
Available in Mac OS X v10.0 and later.
Declaration Syntax
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 )
Parameters
- anObject (NSMenuItem)
- The menu item whose index you want.
Return Value
The index of the item or -1 if no such item was found.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)