MonobjcMonobjc Documented Class Library
InsertItemAtIndex Method (newItem, index)
NamespacesMonobjc.AppKitNSMenuInsertItemAtIndex(NSMenuItem, NSInteger)

Inserts a menu item into the receiver at a specific location.

Original signature is '- (void)insertItem:(NSMenuItem *)newItem atIndex:(NSInteger)index'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void InsertItemAtIndex(
	NSMenuItem newItem,
	NSInteger index
)
Public Overridable Sub InsertItemAtIndex ( _
	newItem As NSMenuItem, _
	index As NSInteger _
)
public:
virtual void InsertItemAtIndex(
	NSMenuItem^ newItem, 
	NSInteger index
)
Parameters
newItem (NSMenuItem)
An object conforming to the NSMenuItem protocol that represents a menu item.
index (NSInteger)
An integer index identifying the location of the menu item in the menu.
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)