Bewerken

Delen via


NSMenu.IndexOf Method

Definition

Overloads

IndexOf(String)
IndexOf(NSMenuItem)
IndexOf(nint)

IndexOf(String)

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

Parameters

aTitle
String

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to

IndexOf(NSMenuItem)

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

Parameters

index
NSMenuItem

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to

IndexOf(nint)

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

Parameters

itemTag
System.System.IntPtr System.nativeint

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to