NSMenu.IndexOfItem 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
參數
- submenu
- NSMenu
傳回
System.System.IntPtr
System.nativeint
- 屬性
適用於
IndexOfItem(NSObject)
[Foundation.Export("indexOfItemWithRepresentedObject:")]
public virtual nint IndexOfItem (Foundation.NSObject obj);
abstract member IndexOfItem : Foundation.NSObject -> nint
override this.IndexOfItem : Foundation.NSObject -> nint
參數
- obj
- NSObject
傳回
System.System.IntPtr
System.nativeint
- 屬性
適用於
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
參數
- target
- NSObject
- actionSelector
- Selector
傳回
System.System.IntPtr
System.nativeint
- 屬性