NSMenu.IndexOfItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| IndexOfItem(NSMenu) | |
| IndexOfItem(NSObject) | |
| IndexOfItem(NSObject, Selector) |
IndexOfItem(NSMenu)
[Foundation.Export("indexOfItemWithSubmenu:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr IndexOfItem(AppKit.NSMenu? submenu);
[<Foundation.Export("indexOfItemWithSubmenu:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member IndexOfItem : AppKit.NSMenu -> nativeint
override this.IndexOfItem : AppKit.NSMenu -> nativeint
Parameters
- submenu
- NSMenu
Returns
IntPtr
nativeint
- Attributes
Applies to
IndexOfItem(NSObject)
[Foundation.Export("indexOfItemWithRepresentedObject:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr IndexOfItem(Foundation.NSObject? obj);
[<Foundation.Export("indexOfItemWithRepresentedObject:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member IndexOfItem : Foundation.NSObject -> nativeint
override this.IndexOfItem : Foundation.NSObject -> nativeint
Parameters
- obj
- NSObject
Returns
IntPtr
nativeint
- Attributes
Applies to
IndexOfItem(NSObject, Selector)
[Foundation.Export("indexOfItemWithTarget:andAction:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr IndexOfItem(Foundation.NSObject? target, ObjCRuntime.Selector? actionSelector);
[<Foundation.Export("indexOfItemWithTarget:andAction:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member IndexOfItem : Foundation.NSObject * ObjCRuntime.Selector -> nativeint
override this.IndexOfItem : Foundation.NSObject * ObjCRuntime.Selector -> nativeint
Parameters
- target
- NSObject
- actionSelector
- Selector
Returns
IntPtr
nativeint
- Attributes