ADC Home > Reference Library > Reference > User Experience > Accessibility > Accessibility (ApplicationServices/HIServices) Reference
|
AXTextAttributedString.h |
Includes: | <CoreFoundation/CoreFoundation.h> |
This header file contains definitions of constants used with accessibility objects that represent attributed strings.
An attributed string is an association of a range of characters and their attributes, such as color and font. If an accessibility object
represents an attributed string, the value of its kAXParameterizedAttributeStringAttribute
attribute is an attributed string object
(a CFAttributedStringRef
or an NSAttributedString
) that uses the constants defined in this header file to define its attributes.
text attribute keys
- kAXFontFamilyKey
Optional key of the kAXFontTextAttribute dictionary for the font family name in a
CFStringRef
.- kAXFontNameKey
Required key of the kAXFontTextAttribute dictionary for the font name in a
CFStringRef
.- kAXFontSizeKey
Required key of the kAXFontTextAttribute dictionary for the font size in a
CFNumberRef
.- kAXUnderlineStyleNone
Values that describe the style of underlining (used with the kAXUnderlineTextAttribute attribute).
- kAXVisibleNameKey
Optional key of the kAXFontTextAttribute dictionary for the font display name in a
CFStringRef
.
kAXAttachmentTextAttribute |
An AXUIElementRef
value for the accessibility object representing the text attachment.
extern CFStringRef kAXAttachmentTextAttribute;
kAXBackgroundColorTextAttribute |
A CGColorRef
value that describes the background color.
extern CFStringRef kAXBackgroundColorTextAttribute;
kAXFontFamilyKey |
Optional key of the kAXFontTextAttribute dictionary for the font family name in a CFStringRef
.
extern CFStringRef kAXFontFamilyKey;
kAXFontNameKey |
Required key of the kAXFontTextAttribute dictionary for the font name in a CFStringRef
.
extern CFStringRef kAXFontNameKey;
kAXFontSizeKey |
Required key of the kAXFontTextAttribute dictionary for the font size in a CFNumberRef
.
extern CFStringRef kAXFontSizeKey;
kAXFontTextAttribute |
A dictionary (a CFDictionaryRef
) of two or more font keys.
extern CFStringRef kAXFontTextAttribute;
The dictionary associated with this attribute must contain the kAXFontNameKey and kAXFontSizeKey font keys. It may also contain the kAXFontFamilyKey and kAXVisibleNameKey font keys.
kAXForegroundColorTextAttribute |
A CGColorRef
value that describes the foreground color.
extern CFStringRef kAXForegroundColorTextAttribute;
kAXLinkTextAttribute |
An AXUIElementRef
value used to access the object to which the specified range of text links.
extern CFStringRef kAXLinkTextAttribute;
kAXMisspelledTextAttribute |
A CFBooleanRef
value that indicates whether the text is misspelled.
extern CFStringRef kAXMisspelledTextAttribute;
kAXNaturalLanguageTextAttribute |
A CFStringRef
value that indicates the language in which the text will be spoken aloud by the system.
extern CFStringRef kAXNaturalLanguageTextAttribute;
kAXReplacementStringTextAttribute |
A CFStringRef
value that indicates the string that will replace the text.
extern CFStringRef kAXReplacementStringTextAttribute;
kAXShadowTextAttribute |
A CFBooleanRef
value that indicates whether the text displays shadow.
extern CFStringRef kAXShadowTextAttribute;
kAXStrikethroughColorTextAttribute |
A CGColorRef
value that describes the color of the strikethrough.
extern CFStringRef kAXStrikethroughColorTextAttribute;
kAXStrikethroughTextAttribute |
A CFBooleanRef
value that indicates whether the text displays strikethrough.
extern CFStringRef kAXStrikethroughTextAttribute;
kAXSuperscriptTextAttribute |
A CFNumberRef
value that indicates whether the text is superscript (value > 0) or subscript (value < 0).
extern CFStringRef kAXSuperscriptTextAttribute;
kAXUnderlineColorTextAttribute |
A CGColorRef
value that describes the color of the underlining.
extern CFStringRef kAXUnderlineColorTextAttribute;
kAXUnderlineTextAttribute |
A CFNumberRef
value that describes the underline style (see AXUnderlineStyle for possible values).
extern CFStringRef kAXUnderlineTextAttribute;
kAXVisibleNameKey |
Optional key of the kAXFontTextAttribute dictionary for the font display name in a CFStringRef
.
extern CFStringRef kAXVisibleNameKey;
kAXUnderlineStyleNone |
Values that describe the style of underlining (used with the kAXUnderlineTextAttribute attribute).
enum { kAXUnderlineStyleNone = 0x0, kAXUnderlineStyleSingle = 0x1, kAXUnderlineStyleThick = 0x2, kAXUnderlineStyleDouble = 0x9 };
|
Last Updated: 2008-08-07