Text superscript style (NSNumber
). Values > 0 are superscript; values < 0 are subscript.
SDK
- macOS 10.4+
Framework
- App
Kit
Declaration
static let accessibilitySuperscript: NSAttributed String.Key
Text superscript style (NSNumber
). Values > 0 are superscript; values < 0 are subscript.
SDK
Framework
static let accessibilitySuperscript: NSAttributed String.Key
static let accessibility Attachment: NSAttributed String .Key
Text attachment (id
).
static let accessibility Autocorrected: NSAttributed String .Key
Autocorrected text (NSNumber
as a Boolean value).
static let accessibility Background Color: NSAttributed String .Key
Text background color (CGColor
).
static let accessibility Font: NSAttributed String .Key
Font keys (NSDictionary
).
static let accessibility Foreground Color: NSAttributed String .Key
Text foreground color (CGColor
).
static let accessibility Link: NSAttributed String .Key
Text link (id
).
static let accessibility Marked Misspelled: NSAttributed String .Key
Misspelled text that is visibly marked as misspelled (NSNumber
as a Boolean value). If you’re implementing a custom text-editing app, use NSAccessibility
to ensure that VoiceOver properly identifies misspelled text to users.
static let accessibility Misspelled: NSAttributed String .Key
Misspelled text that isn’t necessarily visibly marked as misspelled (NSNumber
as a Boolean value). Beginning in macOS 10.9, VoiceOver no longer checks for this attribute; instead, VoiceOver uses accessibility
.
static let accessibility Shadow: NSAttributed String .Key
Text shadow (NSNumber
as a Boolean value).
static let accessibility Strikethrough: NSAttributed String .Key
Text strikethrough (NSNumber
as a Boolean value).
static let accessibility Strikethrough Color: NSAttributed String .Key
Text strikethrough color (CGColor
).
static let accessibility Underline: NSAttributed String .Key
Text underline style (NSNumber
).
static let accessibility Underline Color: NSAttributed String .Key
Text underline color (CGColor
).
static let baseline Offset: NSAttributed String .Key
Vertical offset for text position.
static let character Shape Attribute Name: NSAttributed String .Key
An integer value. The value is interpreted as Apple Type Services k
.
static let glyph Info: NSAttributed String .Key
The name of an NSGlyph
object.
static let spelling State: NSAttributed String .Key
The spelling state attribute.
static let superscript: NSAttributed String .Key
The value of this attribute is an NSNumber
object containing an integer. The default value is 0
.
static let tool Tip: NSAttributed String .Key
The value of this attribute is an NSString
object containing the tooltip text. The default value is nil
, indicating no tooltip is available.
static let uses Screen Fonts Document Attribute: NSAttributed String .Key
The value of this attribute is an NSNumber
object containing a Boolean; this attribute corresponds to the uses
method of NSLayout
; if absent, follows the system default setting