MonobjcMonobjc Documented Class Library
IndexOfItemWithSubmenu Method (anObject)
NamespacesMonobjc.AppKitNSMenuIndexOfItemWithSubmenu(NSMenu)

Returns the index of the menu item in the receiver with the given submenu.

Original signature is '- (NSInteger)indexOfItemWithSubmenu:(NSMenu *)anObject'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IndexOfItemWithSubmenu(
	NSMenu anObject
)
Public Overridable Function IndexOfItemWithSubmenu ( _
	anObject As NSMenu _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithSubmenu(
	NSMenu^ anObject
)
Parameters
anObject (NSMenu)
A menu object that is a menu item of the receiver (that is, a submenu).
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)