MonobjcMonobjc Documented Class Library
InsertItemWithTitleAtIndex Method (title, index)
NamespacesMonobjc.AppKitNSPopUpButtonInsertItemWithTitleAtIndex(NSString, NSInteger)

Inserts an item at the specified position in the menu.

Original signature is '- (void)insertItemWithTitle:(NSString *)title atIndex:(NSInteger)index'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void InsertItemWithTitleAtIndex(
	NSString title,
	NSInteger index
)
Public Overridable Sub InsertItemWithTitleAtIndex ( _
	title As NSString, _
	index As NSInteger _
)
public:
virtual void InsertItemWithTitleAtIndex(
	NSString^ title, 
	NSInteger index
)
Parameters
title (NSString)
The title of the new item. If an item with the same title already exists in the menu, the existing item is removed and the new one is added
index (NSInteger)
The zero-based index at which to insert the item. Specifying 0 inserts the item at the top of 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)