共用方式為


NSMenu.IndexOf 方法

定義

多載

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

參數

aTitle
String

傳回

System.System.IntPtr System.nativeint
屬性

適用於

IndexOf(NSMenuItem)

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

參數

index
NSMenuItem

傳回

System.System.IntPtr System.nativeint
屬性

適用於

IndexOf(nint)

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

參數

itemTag
System.System.IntPtr System.nativeint

傳回

System.System.IntPtr System.nativeint
屬性

適用於