NSMenu.AddItem 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddItem(NSMenuItem) | |
AddItem(String, Selector, String) |
AddItem(NSMenuItem)
[Foundation.Export("addItem:")]
public virtual void AddItem (AppKit.NSMenuItem newItem);
abstract member AddItem : AppKit.NSMenuItem -> unit
override this.AddItem : AppKit.NSMenuItem -> unit
參數
- newItem
- NSMenuItem
- 屬性
適用於
AddItem(String, Selector, String)
[Foundation.Export("addItemWithTitle:action:keyEquivalent:")]
public virtual AppKit.NSMenuItem AddItem (string title, ObjCRuntime.Selector action, string charCode);
abstract member AddItem : string * ObjCRuntime.Selector * string -> AppKit.NSMenuItem
override this.AddItem : string * ObjCRuntime.Selector * string -> AppKit.NSMenuItem
參數
- title
- String
- action
- Selector
- charCode
- String
傳回
- 屬性