Bagikan melalui


NSMenu.IndexOfItem Metode

Definisi

Overload

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

Parameter

submenu
NSMenu

Mengembalikan

System.System.IntPtr System.nativeint
Atribut

Berlaku untuk

IndexOfItem(NSObject)

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

Parameter

obj
NSObject

Mengembalikan

System.System.IntPtr System.nativeint
Atribut

Berlaku untuk

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

Parameter

target
NSObject
actionSelector
Selector

Mengembalikan

System.System.IntPtr System.nativeint
Atribut

Berlaku untuk