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
属性

适用于