NSPopUpButton.SelectItem 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 |
|---|---|
| SelectItem(NSMenuItem) | |
| SelectItem(IntPtr) | |
| SelectItem(String) |
SelectItem(NSMenuItem)
[Foundation.Export("selectItem:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SelectItem(AppKit.NSMenuItem? item);
[<Foundation.Export("selectItem:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SelectItem : AppKit.NSMenuItem -> unit
override this.SelectItem : AppKit.NSMenuItem -> unit
Parameters
- item
- NSMenuItem
- Attributes
Applies to
SelectItem(IntPtr)
[Foundation.Export("selectItemAtIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SelectItem(IntPtr index);
[<Foundation.Export("selectItemAtIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SelectItem : nativeint -> unit
override this.SelectItem : nativeint -> unit
Parameters
- index
-
IntPtr
nativeint
- Attributes
Applies to
SelectItem(String)
[Foundation.Export("selectItemWithTitle:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SelectItem(string title);
[<Foundation.Export("selectItemWithTitle:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SelectItem : string -> unit
override this.SelectItem : string -> unit
Parameters
- title
- String
- Attributes