NSMenu.InsertItem Method

Definition

Overloads

InsertItem(NSMenuItem, nint)
InsertItem(String, Selector, String, nint)

InsertItem(NSMenuItem, nint)

[Foundation.Export("insertItem:atIndex:")]
public virtual void InsertItem (AppKit.NSMenuItem newItem, nint index);
abstract member InsertItem : AppKit.NSMenuItem * nint -> unit
override this.InsertItem : AppKit.NSMenuItem * nint -> unit

Parameters

newItem
NSMenuItem
index
System.System.IntPtr System.nativeint
Attributes

Applies to

InsertItem(String, Selector, String, nint)

[Foundation.Export("insertItemWithTitle:action:keyEquivalent:atIndex:")]
public virtual AppKit.NSMenuItem InsertItem (string title, ObjCRuntime.Selector action, string charCode, nint index);
abstract member InsertItem : string * ObjCRuntime.Selector * string * nint -> AppKit.NSMenuItem
override this.InsertItem : string * ObjCRuntime.Selector * string * nint -> AppKit.NSMenuItem

Parameters

title
String
action
Selector
charCode
String
index
System.System.IntPtr System.nativeint

Returns

Attributes

Applies to