NSMenuItem Constructors
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
NSMenuItem()
NSMenuItem(NSCoder)
[Foundation.Export("initWithCoder:")]
[ObjCRuntime.DesignatedInitializer]
public NSMenuItem (Foundation.NSCoder coder);
new AppKit.NSMenuItem : Foundation.NSCoder -> AppKit.NSMenuItem
Parameters
- coder
- NSCoder
- Attributes
Applies to
NSMenuItem(NSObjectFlag)
protected NSMenuItem (Foundation.NSObjectFlag t);
new AppKit.NSMenuItem : Foundation.NSObjectFlag -> AppKit.NSMenuItem
Parameters
Applies to
NSMenuItem(IntPtr)
protected internal NSMenuItem (IntPtr handle);
new AppKit.NSMenuItem : nativeint -> AppKit.NSMenuItem
Parameters
- handle
-
IntPtr
nativeint
Applies to
NSMenuItem(String)
public NSMenuItem (string title);
new AppKit.NSMenuItem : string -> AppKit.NSMenuItem
Parameters
- title
- String
Applies to
NSMenuItem(String, EventHandler)
public NSMenuItem (string title, EventHandler handler);
new AppKit.NSMenuItem : string * EventHandler -> AppKit.NSMenuItem
Parameters
- title
- String
- handler
- EventHandler
Applies to
NSMenuItem(String, String)
NSMenuItem(String, Selector, String)
[Foundation.Export("initWithTitle:action:keyEquivalent:")]
[ObjCRuntime.DesignatedInitializer]
public NSMenuItem (string title, ObjCRuntime.Selector selectorAction, string charCode);
new AppKit.NSMenuItem : string * ObjCRuntime.Selector * string -> AppKit.NSMenuItem
Parameters
- title
- String
- selectorAction
- Selector
- charCode
- String
- Attributes
Applies to
NSMenuItem(String, String, EventHandler)
public NSMenuItem (string title, string charCode, EventHandler handler);
new AppKit.NSMenuItem : string * string * EventHandler -> AppKit.NSMenuItem
Parameters
- title
- String
- charCode
- String
- handler
- EventHandler
Applies to
NSMenuItem(String, String, EventHandler, Func<NSMenuItem,Boolean>)
public NSMenuItem (string title, string charCode, EventHandler handler, Func<AppKit.NSMenuItem,bool> validator);
new AppKit.NSMenuItem : string * string * EventHandler * Func<AppKit.NSMenuItem, bool> -> AppKit.NSMenuItem
Parameters
- title
- String
- charCode
- String
- handler
- EventHandler
- validator
- Func<NSMenuItem,Boolean>