NSMenu.AddItem 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 |
|---|---|
| AddItem(NSMenuItem) | |
| AddItem(String, Selector, String) |
AddItem(NSMenuItem)
[Foundation.Export("addItem:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddItem(AppKit.NSMenuItem newItem);
[<Foundation.Export("addItem:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddItem : AppKit.NSMenuItem -> unit
override this.AddItem : AppKit.NSMenuItem -> unit
Parameters
- newItem
- NSMenuItem
- Attributes
Applies to
AddItem(String, Selector, String)
[Foundation.Export("addItemWithTitle:action:keyEquivalent:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual AppKit.NSMenuItem AddItem(string title, ObjCRuntime.Selector? action, string charCode);
[<Foundation.Export("addItemWithTitle:action:keyEquivalent:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddItem : string * ObjCRuntime.Selector * string -> AppKit.NSMenuItem
override this.AddItem : string * ObjCRuntime.Selector * string -> AppKit.NSMenuItem
Parameters
- title
- String
- action
- Selector
- charCode
- String
Returns
- Attributes