NSTouchBarItem 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
NSTouchBarItem(NSTouchBarItemIdentifier) | |
NSTouchBarItem(NSCoder) | |
NSTouchBarItem(NSObjectFlag) | |
NSTouchBarItem(IntPtr) | |
NSTouchBarItem(String) |
NSTouchBarItem(NSTouchBarItemIdentifier)
public NSTouchBarItem (AppKit.NSTouchBarItemIdentifier identifier);
new AppKit.NSTouchBarItem : AppKit.NSTouchBarItemIdentifier -> AppKit.NSTouchBarItem
参数
- identifier
- NSTouchBarItemIdentifier
适用于
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
- 属性