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
属性

适用于