Edit

Share via


NSMenu.IndexOfItem Method

Definition

Overloads

IndexOfItem(NSMenu)
IndexOfItem(NSObject)
IndexOfItem(NSObject, Selector)

IndexOfItem(NSMenu)

[Foundation.Export("indexOfItemWithSubmenu:")]
public virtual nint IndexOfItem (AppKit.NSMenu submenu);
abstract member IndexOfItem : AppKit.NSMenu -> nint
override this.IndexOfItem : AppKit.NSMenu -> nint

Parameters

submenu
NSMenu

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to

IndexOfItem(NSObject)

[Foundation.Export("indexOfItemWithRepresentedObject:")]
public virtual nint IndexOfItem (Foundation.NSObject obj);
abstract member IndexOfItem : Foundation.NSObject -> nint
override this.IndexOfItem : Foundation.NSObject -> nint

Parameters

obj
NSObject

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to

IndexOfItem(NSObject, Selector)

[Foundation.Export("indexOfItemWithTarget:andAction:")]
public virtual nint IndexOfItem (Foundation.NSObject target, ObjCRuntime.Selector actionSelector);
abstract member IndexOfItem : Foundation.NSObject * ObjCRuntime.Selector -> nint
override this.IndexOfItem : Foundation.NSObject * ObjCRuntime.Selector -> nint

Parameters

target
NSObject
actionSelector
Selector

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to