MonobjcMonobjc Documented Class Library
IndexOfItem Method (anObject)
NamespacesMonobjc.AppKitNSMenuIndexOfItem(NSMenuItem)

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.

Declaration Syntax
C#Visual BasicVisual 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)
A menu item—that is an object conforming to the NSMenuItem protocol.
Return Value
The integer index of the menu item or, if no such menu item is in the menu, –1.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)