Bearbeiten

Freigeben über


NSPopUpButton.IndexOfItem Method

Definition

Overloads

IndexOfItem(NSMenuItem)
IndexOfItem(NSObject)
IndexOfItem(nint)
IndexOfItem(String)
IndexOfItem(NSObject, Selector)

IndexOfItem(NSMenuItem)

[Foundation.Export("indexOfItem:")]
public virtual nint IndexOfItem (AppKit.NSMenuItem item);
abstract member IndexOfItem : AppKit.NSMenuItem -> nint
override this.IndexOfItem : AppKit.NSMenuItem -> nint

Parameters

item
NSMenuItem

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(nint)

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

Parameters

tag
System.System.IntPtr System.nativeint

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to

IndexOfItem(String)

[Foundation.Export("indexOfItemWithTitle:")]
public virtual nint IndexOfItem (string title);
abstract member IndexOfItem : string -> nint
override this.IndexOfItem : string -> nint

Parameters

title
String

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