NSAttributedString 类

定义

[Foundation.Register("NSAttributedString", true)]
public class NSAttributedString : Foundation.NSObject, Foundation.INSItemProviderReading, Foundation.INSItemProviderWriting, Foundation.INSMutableCopying, Foundation.INSSecureCoding, IDisposable
[Foundation.Register("NSAttributedString", true)]
public class NSAttributedString : Foundation.NSObject, AppKit.INSPasteboardReading, AppKit.INSPasteboardWriting, Foundation.INSMutableCopying, Foundation.INSSecureCoding, IDisposable
[Foundation.Register("NSAttributedString", true)]
public class NSAttributedString : Foundation.NSObject, Foundation.INSMutableCopying, Foundation.INSSecureCoding, IDisposable
[<Foundation.Register("NSAttributedString", true)>]
type NSAttributedString = class
    inherit NSObject
    interface INSCoding
    interface INativeObject
    interface IDisposable
    interface INSCopying
    interface INSItemProviderReading
    interface INSItemProviderWriting
    interface INSMutableCopying
    interface INSSecureCoding
[<Foundation.Register("NSAttributedString", true)>]
type NSAttributedString = class
    inherit NSObject
    interface INSCoding
    interface INativeObject
    interface IDisposable
    interface INSCopying
    interface INSMutableCopying
    interface INSSecureCoding
    interface INSPasteboardReading
    interface INSPasteboardWriting
[<Foundation.Register("NSAttributedString", true)>]
type NSAttributedString = class
    inherit NSObject
    interface INSCoding
    interface INativeObject
    interface IDisposable
    interface INSCopying
    interface INSMutableCopying
    interface INSSecureCoding
继承
NSAttributedString
派生
属性
实现

构造函数

名称 说明
NSAttributedString()

NSAttributedString使用默认值创建新项。

NSAttributedString(NativeHandle)

创建非托管对象的托管表示形式时使用的构造函数。 由运行时调用。

NSAttributedString(NSAttributedString)
NSAttributedString(NSCoder)

一个构造函数,用于从存储在 unarchiver 对象中的数据初始化对象。

NSAttributedString(NSData, NSAttributedStringDocumentAttributes, NSDictionary, NSError)
NSAttributedString(NSData, NSAttributedStringDocumentAttributes, NSDictionary)
NSAttributedString(NSData, NSAttributedStringDocumentAttributes, NSError)
NSAttributedString(NSData, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)
NSAttributedString(NSData, NSDictionary, NSDictionary, NSError)
NSAttributedString(NSData, NSDictionary, NSDictionary)
NSAttributedString(NSData, NSDictionary)
NSAttributedString(NSData, NSError)
NSAttributedString(NSData, NSUrl, NSDictionary)
NSAttributedString(NSFileWrapper, NSDictionary)
NSAttributedString(NSObjectFlag)

要调用派生类的构造函数,以跳过初始化,并仅分配对象。

NSAttributedString(NSUrl, NSAttributedStringDocumentAttributes, NSDictionary, NSError)
NSAttributedString(NSUrl, NSAttributedStringDocumentAttributes, NSError)
NSAttributedString(NSUrl, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)
NSAttributedString(NSUrl, NSDictionary, NSDictionary, NSError)
NSAttributedString(NSUrl, NSDictionary)
NSAttributedString(NSUrl, NSError)
NSAttributedString(String, CTStringAttributes)

创建用于 CoreText 呈现函数的 NSAttributedString。

NSAttributedString(String, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)
NSAttributedString(String, NSDictionary)
NSAttributedString(String, NSDictionary)
NSAttributedString(String, NSFont, NSColor, NSColor, NSColor, NSColor, NSColor, NSUnderlineStyle, NSUnderlineStyle, NSParagraphStyle, Single, NSShadow, NSUrl, Boolean, NSTextAttachment, NSLigatureType, Single, Single, Single, Single, NSCursor, String, Int32, NSGlyphInfo, NSArray, Boolean, NSTextLayoutOrientation, NSTextAlternatives, NSSpellingState)
NSAttributedString(String, NSStringAttributes)
NSAttributedString(String, UIFont, UIColor, UIColor, UIColor, NSParagraphStyle, NSLigatureType, Single, NSUnderlineStyle, NSShadow, Single, NSUnderlineStyle)

使用参数中的指定属性创建 UIKit 特性字符串。

NSAttributedString(String, UIStringAttributes)
NSAttributedString(String)

属性

名称 说明
AccessibilityAttributedUserInputLabels (继承自 NSObject)
AccessibilityRespondsToUserInteraction (继承自 NSObject)
AccessibilityTextualContext (继承自 NSObject)
AccessibilityUserInputLabels (继承自 NSObject)
AttributedStringByInflectingString
Class (继承自 NSObject)
ClassHandle

此类的 Objective-C 类句柄。

CocoaVersionDocumentAttribute

表示与常量“NSCocoaVersionDocumentAttribute”关联的值。

ContainsAttachments
DebugDescription (继承自 NSObject)
Description (继承自 NSObject)
ExposedBindings (继承自 NSObject)
Handle

处理(指针)到非托管对象表示形式。

(继承自 NSObject)
IsDirectBinding

获取或设置一个值,该值指示此实例是否使用直接 Objective-C 绑定。

(继承自 NSObject)
IsProxy (继承自 NSObject)
Length
LowLevelValue
ReadableTypeIdentifiers
RetainCount (继承自 NSObject)
Self (继承自 NSObject)
Size
SourceTextScalingDocumentAttribute

表示与常量“NSSourceTextScalingDocumentAttribute”关联的值。

Superclass (继承自 NSObject)
SuperHandle

用于表示此 NSObject基类中方法的句柄。

(继承自 NSObject)
TextLayoutSectionOrientation
TextLayoutSectionRange
TextLayoutSectionsAttribute
TextScalingDocumentAttribute

表示与常量“NSTextScalingDocumentAttribute”关联的值。

UnderlineByWordMaskAttributeName
Value

作为字符串的对象的内容。

WritableTypeIdentifiers
WritableTypeIdentifiersForItemProvider
Zone (继承自 NSObject)

方法

名称 说明
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (继承自 NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (继承自 NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

注册对象以使用任意方法在外部观察。

(继承自 NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

注册对象以使用任意方法在外部观察。

(继承自 NSObject)
AwakeFromNib() (继承自 NSObject)
BeginInvokeOnMainThread(Action)

在主 UI 线程上异步调用指定的操作。

(继承自 NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

在主 UI 线程上异步调用指定的代码。

(继承自 NSObject)
Bind(NSString, NSObject, String, NSBindingOptions) (继承自 NSObject)
Bind(NSString, NSObject, String, NSDictionary) (继承自 NSObject)
BoundingRectWithSize(CGSize, NSStringDrawingOptions)
CommitEditing() (继承自 NSObject)
CommitEditing(NSObject, Selector, IntPtr) (继承自 NSObject)
ConformsToProtocol(NativeHandle) (继承自 NSObject)
ContainsAttachmentsInRange(NSRange)
Copy() (继承自 NSObject)
Copy(NSZone)

执行基础 Objective-C 对象的副本。

Create(NSAdaptiveImageGlyph, NSDictionary<NSString,NSObject>)
Create(NSAdaptiveImageGlyph, NSDictionary<NSString,NSObject>)
Create(NSData, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

新建 NSAttributedString

Create(NSData, NSAttributedStringDocumentAttributes, NSError)

新建 NSAttributedString

Create(NSData, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

从 Markdown 数据创建新的 NSAttributedString 数据。

Create(NSData, NSDictionary, NSDictionary, NSError)

新建 NSAttributedString

Create(NSData, NSError)

新建 NSAttributedString

Create(NSFileWrapper, NSDictionary)

通过分析 wrapper RTFD 数据来创建一个NSAttributedString

Create(NSUrl, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

新建 NSAttributedString

Create(NSUrl, NSAttributedStringDocumentAttributes, NSError)

新建 NSAttributedString

Create(NSUrl, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

从 markdown 文件创建新 NSAttributedString 文件。

Create(NSUrl, NSDictionary, NSDictionary, NSError)

新建 NSAttributedString

Create(NSUrl, NSError)

新建 NSAttributedString

Create(String, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

使用 markdown 从字符串创建新 NSAttributedString 项。

CreateWithDocFormat(NSData, NSDictionary)

通过将 wordDocFormat 数据分析为Microsoft Word文档来创建 NSAttributedString

CreateWithHTML(NSData, NSAttributedStringDocumentAttributes, NSDictionary)

通过将数据分析htmlData为 HTML 来创建一个NSAttributedString

CreateWithHTML(NSData, NSDictionary, NSDictionary)

通过将数据分析htmlData为 HTML 来创建一个NSAttributedString

CreateWithHTML(NSData, NSDictionary)

通过将数据分析htmlData为 HTML 来创建一个NSAttributedString

CreateWithHTML(NSData, NSUrl, NSDictionary)

通过将数据分析htmlData为 HTML 来创建一个NSAttributedString

CreateWithRTF(NSData, NSDictionary)

通过将数据分析rtfData为 RTF 来创建一个NSAttributedString

CreateWithRTFD(NSData, NSDictionary)

通过将数据分析rtfdData为 RTFD 来创建数据NSAttributedString

DangerousAutorelease()

对此对象调用“autorelease”选择器。

(继承自 NSObject)
DangerousRelease()

对此对象调用“release”选择器。

(继承自 NSObject)
DangerousRetain()

对此对象调用“保留”选择器。

(继承自 NSObject)
DidChange(NSKeyValueChange, NSIndexSet, NSString) (继承自 NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (继承自 NSObject)
DidChangeValue(String) (继承自 NSObject)
Dispose()

释放对象使用 NSObject 的资源。

(继承自 NSObject)
Dispose(Boolean)

释放此对象使用的资源。

(继承自 NSObject)
DoesNotRecognizeSelector(Selector) (继承自 NSObject)
DoubleClick(UIntPtr)
DrawString(CGPoint)

绘制指定点处的字符串。

DrawString(CGRect, NSStringDrawingOptions, NSStringDrawingContext)
DrawString(CGRect, NSStringDrawingOptions)
DrawString(CGRect)
EncodeTo(NSCoder)

使用提供的编码器对对象的状态进行编码。

EnumerateAttribute(NSString, NSRange, NSAttributedStringEnumeration, NSAttributedStringCallback)
EnumerateAttributes(NSRange, NSAttributedStringEnumeration, NSAttributedRangeCallback)
Equals(NSObject)

确定指定的 NSObject 值是否等于当前 NSObject

(继承自 NSObject)
Equals(Object)

确定指定的对象是否等于当前 NSObject对象。

(继承自 NSObject)
FromAttachment(NSTextAttachment, NSDictionary<NSString,NSObject>)
FromAttachment(NSTextAttachment, NSDictionary<NSString,NSObject>)
FromAttachment(NSTextAttachment)
FromAttachment(NSTextAttachment)
GetAppKitAttributes(IntPtr, NSRange, NSRange)
GetAppKitAttributes(IntPtr, NSRange)
GetAttribute(String, IntPtr, NSRange, NSRange)
GetAttribute(String, IntPtr, NSRange)
GetAttributes(IntPtr, NSRange, NSRange)
GetAttributes(IntPtr, NSRange)
GetBindingInfo(NSString) (继承自 NSObject)
GetBindingOptionDescriptions(NSString) (继承自 NSObject)
GetBindingValueClass(NSString) (继承自 NSObject)
GetBoundingRect(CGSize, NSStringDrawingOptions, NSStringDrawingContext)
GetCoreTextAttributes(IntPtr, NSRange, NSRange)
GetCoreTextAttributes(IntPtr, NSRange)
GetData(NSRange, NSAttributedStringDocumentAttributes, NSError)
GetData(NSRange, NSDictionary, NSError)
GetDataFromRange(NSRange, NSAttributedStringDocumentAttributes, NSError)
GetDataFromRange(NSRange, NSDictionary, NSError)
GetDictionaryOfValuesFromKeys(NSString[]) (继承自 NSObject)
GetDocFormat(NSRange, NSAttributedStringDocumentAttributes)
GetDocFormat(NSRange, NSDictionary)
GetFileWrapper(NSRange, NSAttributedStringDocumentAttributes, NSError)
GetFileWrapper(NSRange, NSDictionary, NSError)
GetFileWrapperFromRange(NSRange, NSAttributedStringDocumentAttributes, NSError)
GetFileWrapperFromRange(NSRange, NSDictionary, NSError)
GetFontAttributes(NSRange)
GetHashCode()

为当前实例生成哈希代码。

(继承自 NSObject)
GetItemNumber(NSTextList, UIntPtr)
GetItemProviderVisibilityForTypeIdentifier(String)
GetLineBreak(UIntPtr, NSRange)
GetLineBreakByHyphenating(UIntPtr, NSRange)
GetMethodForSelector(Selector) (继承自 NSObject)
GetNativeHash() (继承自 NSObject)
GetNextWord(UIntPtr, Boolean)
GetObject(NSData, String, NSError)
GetPasteboardPropertyListForType(String)
GetRange(NSTextBlock, UIntPtr)
GetRange(NSTextList, UIntPtr)
GetRange(NSTextTable, UIntPtr)
GetReadableTypesForPasteboard(NSPasteboard)
GetReadingOptionsForType(String, NSPasteboard)
GetRtf(NSRange, NSAttributedStringDocumentAttributes)
GetRtf(NSRange, NSDictionary)
GetRtfd(NSRange, NSAttributedStringDocumentAttributes)
GetRtfd(NSRange, NSDictionary)
GetRtfdFileWrapper(NSRange, NSAttributedStringDocumentAttributes)
GetRtfdFileWrapper(NSRange, NSDictionary)
GetRulerAttributes(NSRange)
GetUIKitAttributes(IntPtr, NSRange, NSRange)
GetUIKitAttributes(IntPtr, NSRange)
GetUrl(UIntPtr, NSRange)
GetWritableTypesForPasteboard(NSPasteboard)
GetWritingOptionsForType(String, NSPasteboard)
Init()

通过调用 Objective-C init 方法初始化对象。

(继承自 NSObject)
InitializeHandle(NativeHandle, String) (继承自 NSObject)
InitializeHandle(NativeHandle) (继承自 NSObject)
Invoke(Action, Double)

在指定的延迟后调用指定的操作。

(继承自 NSObject)
Invoke(Action, TimeSpan)

在指定的延迟后调用指定的操作。

(继承自 NSObject)
InvokeOnMainThread(Action)

在主 UI 线程上同步调用指定的操作。

(继承自 NSObject)
InvokeOnMainThread(Selector, NSObject)

在主 UI 线程上同步调用指定的代码。

(继承自 NSObject)
IsEqual(NSAttributedString)
IsEqual(NSObject) (继承自 NSObject)
IsKindOfClass(Class) (继承自 NSObject)
IsMemberOfClass(Class) (继承自 NSObject)
LoadData(String, Action<NSData,NSError>)

实现此方法以自定义数据加载方式 NSItemProvider

LoadDataAsync(String, NSProgress)
LoadDataAsync(String)

从项提供程序异步加载标识类型的数据,并返回包含数据的任务。

LoadFromHtml(NSData, NSAttributedStringDocumentAttributes, NSAttributedStringCompletionHandler)
LoadFromHtml(NSData, NSDictionary, NSAttributedStringCompletionHandler)
LoadFromHtml(NSUrl, NSAttributedStringDocumentAttributes, NSAttributedStringCompletionHandler)
LoadFromHtml(NSUrl, NSDictionary, NSAttributedStringCompletionHandler)
LoadFromHtml(NSUrlRequest, NSAttributedStringDocumentAttributes, NSAttributedStringCompletionHandler)
LoadFromHtml(NSUrlRequest, NSDictionary, NSAttributedStringCompletionHandler)
LoadFromHtml(String, NSAttributedStringDocumentAttributes, NSAttributedStringCompletionHandler)
LoadFromHtml(String, NSDictionary, NSAttributedStringCompletionHandler)
LoadFromHtmlAsync(NSData, NSAttributedStringDocumentAttributes)
LoadFromHtmlAsync(NSData, NSDictionary)
LoadFromHtmlAsync(NSUrl, NSAttributedStringDocumentAttributes)
LoadFromHtmlAsync(NSUrl, NSDictionary)
LoadFromHtmlAsync(NSUrlRequest, NSAttributedStringDocumentAttributes)
LoadFromHtmlAsync(NSUrlRequest, NSDictionary)
LoadFromHtmlAsync(String, NSAttributedStringDocumentAttributes)
LoadFromHtmlAsync(String, NSDictionary)
LowLevelGetAttributes(IntPtr, IntPtr)
LowLevelGetAttributes(IntPtr, NSRange)

低级别版本,为指定范围内的属性提供 NSDictionary。

MarkDirty()

将常规对等对象(IsDirectBinding 为 true)提升为 toggleref 对象。

(继承自 NSObject)
MutableCopy() (继承自 NSObject)
MutableCopy(NSZone)
ObjectDidEndEditing(NSObject) (继承自 NSObject)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) (继承自 NSObject)
PerformSelector(Selector, NSObject, Double, NSString[]) (继承自 NSObject)
PerformSelector(Selector, NSObject, Double) (继承自 NSObject)
PerformSelector(Selector, NSObject, NSObject) (继承自 NSObject)
PerformSelector(Selector, NSObject) (继承自 NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) (继承自 NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean) (继承自 NSObject)
PerformSelector(Selector) (继承自 NSObject)
PrefersRtfdInRange(NSRange)
PrepareForInterfaceBuilder() (继承自 NSObject)
RemoveObserver(NSObject, NSString, IntPtr) (继承自 NSObject)
RemoveObserver(NSObject, NSString) (继承自 NSObject)
RemoveObserver(NSObject, String, IntPtr) (继承自 NSObject)
RemoveObserver(NSObject, String) (继承自 NSObject)
RespondsToSelector(Selector) (继承自 NSObject)
SetNilValueForKey(NSString) (继承自 NSObject)
SetValueForKey(NSObject, NSString) (继承自 NSObject)
SetValueForKeyPath(NativeHandle, NSString)

将给定键路径标识的属性的值设置为给定值。

(继承自 NSObject)
SetValueForKeyPath(NSObject, NSString) (继承自 NSObject)
SetValueForUndefinedKey(NSObject, NSString) (继承自 NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (继承自 NSObject)
Substring(IntPtr, IntPtr)
ToString()

返回当前实例值的字符串表示形式。

(继承自 NSObject)
Unbind(NSString) (继承自 NSObject)
ValueForKey(NSString) (继承自 NSObject)
ValueForKeyPath(NSString) (继承自 NSObject)
ValueForUndefinedKey(NSString) (继承自 NSObject)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (继承自 NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (继承自 NSObject)
WillChangeValue(String) (继承自 NSObject)

扩展方法

名称 说明
AcceptsPreviewPanelControl(NSObject, QLPreviewPanel)
AccessibilityHitTest(NSObject, CGPoint, UIEvent)
BeginPreviewPanelControl(NSObject, QLPreviewPanel)
BoundingRectWithSize(NSAttributedString, CGSize, NSStringDrawingOptions, NSStringDrawingContext)
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
ContainsAttachments(NSAttributedString, NSRange)

返回 true 当前 NSAttributedString 是否包含指定 range中的附件。

DrawAtPoint(NSAttributedString, CGPoint)
DrawInRect(NSAttributedString, CGRect)
DrawWithRect(NSAttributedString, CGRect, NSStringDrawingOptions, NSStringDrawingContext)
EndPreviewPanelControl(NSObject, QLPreviewPanel)
GetAccessibilityCustomRotors(NSObject)

获取适合this对象的对象的数组UIAccessibilityCustomRotor

GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetAccessibilityNextTextNavigationElement(NSObject)
GetAccessibilityNextTextNavigationElementBlock(NSObject)
GetAccessibilityPreviousTextNavigationElement(NSObject)
GetAccessibilityPreviousTextNavigationElementBlock(NSObject)
GetAccessibilityTextInputResponder(NSObject)
GetAccessibilityTextInputResponderHandler(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
GetDebugDescription(INSObjectProtocol)
GetHandle(INativeObject)
GetItemProviderVisibilityForTypeIdentifier(INSItemProviderWriting, String)
GetNonNullHandle(INativeObject, String)
GetSize(NSAttributedString)
GetValidModes(NSObject, NSFontPanel)
GetWritableTypeIdentifiersForItemProvider(INSItemProviderWriting)
GetWritingOptionsForType(INSPasteboardWriting, String, NSPasteboard)
LoadDataAsync(INSItemProviderWriting, String, NSProgress)
LoadDataAsync(INSItemProviderWriting, String)

从项提供程序异步加载标识类型的数据,并返回包含数据的任务。

ObjectDidBeginEditing(NSObject, INSEditor)
ObjectDidEndEditing(NSObject, INSEditor)
ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

设置适合this对象的对象的数组UIAccessibilityCustomRotor

SetAccessibilityNextTextNavigationElement(NSObject, NSObject)
SetAccessibilityNextTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityPreviousTextNavigationElement(NSObject, NSObject)
SetAccessibilityPreviousTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityTextInputResponder(NSObject, IUITextInput)
SetAccessibilityTextInputResponderHandler(NSObject, UITextInputReturnHandler)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
ValidateToolbarItem(NSObject, NSToolbarItem)

适用于