共用方式為


NSTouchBarItem 建構函式

定義

多載

NSTouchBarItem(NSTouchBarItemIdentifier)
NSTouchBarItem(NSCoder)
NSTouchBarItem(NSObjectFlag)
NSTouchBarItem(IntPtr)
NSTouchBarItem(String)

NSTouchBarItem(NSTouchBarItemIdentifier)

public NSTouchBarItem (AppKit.NSTouchBarItemIdentifier identifier);
new AppKit.NSTouchBarItem : AppKit.NSTouchBarItemIdentifier -> AppKit.NSTouchBarItem

參數

適用於

NSTouchBarItem(NSCoder)

[Foundation.Export("initWithCoder:")]
[ObjCRuntime.DesignatedInitializer]
public NSTouchBarItem (Foundation.NSCoder coder);
new AppKit.NSTouchBarItem : Foundation.NSCoder -> AppKit.NSTouchBarItem

參數

coder
NSCoder
屬性

適用於

NSTouchBarItem(NSObjectFlag)

protected NSTouchBarItem (Foundation.NSObjectFlag t);
new AppKit.NSTouchBarItem : Foundation.NSObjectFlag -> AppKit.NSTouchBarItem

參數

適用於

NSTouchBarItem(IntPtr)

protected internal NSTouchBarItem (IntPtr handle);
new AppKit.NSTouchBarItem : nativeint -> AppKit.NSTouchBarItem

參數

handle
IntPtr

nativeint

適用於

NSTouchBarItem(String)

[Foundation.Export("initWithIdentifier:")]
[ObjCRuntime.DesignatedInitializer]
public NSTouchBarItem (string identifier);
new AppKit.NSTouchBarItem : string -> AppKit.NSTouchBarItem

參數

identifier
String
屬性

適用於