Text Attribute Identifiers
This topic describes the named constants used to identify text attributes of a Microsoft UI Automation text range. These constants are used with the following methods:
- ITextRangeProvider::FindAttribute
- ITextRangeProvider::GetAttributeValue
- IUIAutomationTextRange::FindAttribute
- IUIAutomationTextRange::GetAttributeValue
Constant/value | Description |
---|---|
|
Identifies the AfterParagraphSpacing text attribute, which specifies the size of spacing after the paragraph. Variant type: VT_R8 Default value: 0 |
|
Identifies the AnimationStyle text attribute, which specifies the type of animation applied to the text. This attribute is specified as a value from the AnimationStyle enumerated type. Variant type: VT_I4 Default value: AnimationStyle_None |
|
Identifies the AnnotationObjects text attribute, which maintains an array of IUIAutomationElement2 interfaces, one for each element in the current text range that implements the Annotation control pattern. Each element might also implement other control patterns as needed to describe the annotation. For example, an annotation that is a comment would also support the Text control pattern. Supported starting with Windows 8. Variant type: VT_UNKNOWN Default value: empty array |
|
Identifies the AnnotationTypes text attribute, which maintains a list of annotation type identifiers for a range of text. For a list of possible values, see Annotation Type Identifiers. Supported starting with Windows 8. Variant type: VT_ARRAY VT_I4 Default value: empty array |
|
Identifies the BackgroundColor text attribute, which specifies the background color of the text. This attribute is specified as a COLORREF; a 32-bit value used to specify an RGB or RGBA color. Variant type: VT_I4 Default value: 0 |
|
Identifies the BeforeParagraphSpacing text attribute, which specifies the size of spacing before the paragraph. Variant type: VT_R8 Default value: 0 |
|
Identifies the BulletStyle text attribute, which specifies the style of bullets used in the text range. This attribute is specified as a value from the BulletStyle enumerated type. Variant type: VT_I4 Default value: BulletStyle_None |
|
Identifies the CapStyle text attribute, which specifies the capitalization style for the text. This attribute is specified as a value from the CapStyle enumerated type. Variant type: VT_I4 Default value: CapStyle_None |
|
Identifies the CaretBidiMode text attribute, which indicates the direction of text flow in the text range. This attribute is specified as a value from the CaretBidiMode enumerated type. Supported starting with Windows 8. Variant type: VT_I4 Default value: CaretBidiMode_LTR |
|
Identifies the CaretPosition text attribute, which indicates whether the caret is at the beginning or the end of a line of text in the text range. This attribute is specified as a value from the CaretPosition enumerated type. Supported starting with Windows 8. Variant type: VT_I4 Default value: CaretPosition_Unknown |
|
Identifies the Culture text attribute, which specifies the locale of the text by locale identifier (LCID). Variant type: VT_I4 Default value: locale of the application UI |
|
Identifies the FontName text attribute, which specifies the name of the font. Examples: "Arial Black"; "Arial Narrow". The font name string is not localized. Variant type: VT_BSTR Default value: empty string |
|
Identifies the FontSize text attribute, which specifies the point size of the font. Variant type: VT_R8 Default value: 0 |
|
Identifies the FontWeight text attribute, which specifies the relative stroke, thickness, or boldness of the font. The FontWeight attribute is modeled after the lfWeight member of the GDI LOGFONT structure, and related standards, and can be one of the following values:
Variant type: VT_I4 Default value: 0 |
|
Identifies the ForegroundColor text attribute, which specifies the foreground color of the text. This attribute is specified as a COLORREF, a 32-bit value used to specify an RGB or RGBA color. Variant type: VT_I4 Default value: 0 |
|
Identifies the HorizontalTextAlignment text attribute, which specifies how the text is aligned horizontally. This attribute is specified as a value from the HorizontalTextAlignmentEnum enumerated type. Variant type: VT_I4 Default value: HorizontalTextAlignment_Left |
|
Identifies the IndentationFirstLine text attribute, which specifies how far, in points, to indent the first line of a paragraph. Variant type: VT_R8 Default value: 0 |
|
Identifies the IndentationLeading text attribute, which specifies the leading indentation, in points. Variant type: VT_R8 Default value: 0 |
|
Identifies the IndentationTrailing text attribute, which specifies the trailing indentation, in points. Variant type: VT_R8 Default value: 0 |
|
Identifies the IsActive text attribute, which indicates whether the control that contains the text range has the keyboard focus (TRUE) or not (FALSE). Supported starting with Windows 8. Variant type: VT_BOOL Default value: FALSE |
|
Identifies the IsHidden text attribute, which indicates whether the text is hidden (TRUE) or visible (FALSE). Variant type: VT_BOOL Default value: FALSE |
|
Identifies the IsItalic text attribute, which indicates whether the text is italic (TRUE) or not (FALSE). Variant type: VT_BOOL Default value: FALSE |
|
Identifies the IsReadOnly text attribute, which indicates whether the text is read-only (TRUE) or can be modified (FALSE). Variant type: VT_BOOL Default value: FALSE |
|
Identifies the IsSubscript text attribute, which indicates whether the text is subscript (TRUE) or not (FALSE). Variant type: VT_BOOL Default value: FALSE |
|
Identifies the IsSuperscript text attribute, which indicates whether the text is subscript (TRUE) or not (FALSE). Variant type: VT_BOOL Default value: FALSE |
|
Identifies the LineSpacing text attribute, which specifies the spacing between lines of text. Variant type: VT_BSTR Default value: "LineSpacingAttributeDefault" |
|
Identifies the Link text attribute, which contains the IUIAutomationTextRange interface of the text range that is the target of an internal link in a document. Supported starting with Windows 8. Variant type: VT_UNKNOWN Default value: NULL |
|
Identifies the MarginBottom text attribute, which specifies the size, in points, of the bottom margin applied to the page associated with the text range. Variant type: VT_R8 Default value: 0 |
|
Identifies the MarginLeading text attribute, which specifies the size, in points, of the leading margin applied to the page associated with the text range. Variant type: VT_R8 Default value: 0 |
|
Identifies the MarginTop text attribute, which specifies the size, in points, of the top margin applied to the page associated with the text range. Variant type: VT_R8 Ddefault value: 0 |
|
Identifies the MarginTrailing text attribute, which specifies the size, in points, of the trailing margin applied to the page associated with the text range. Variant type: VT_R8 Default value: 0 |
|
Identifies the OutlineStyles text attribute, which specifies the outline style of the text. This attribute is specified as a value from the OutlineStyles enumerated type. Variant type: VT_I4 Default value: OutlineStyles_None |
|
Identifies the OverlineColor text attribute, which specifies the color of the overline text decoration. This attribute is specified as a COLORREF, a 32-bit value used to specify an RGB or RGBA color. Variant type: VT_I4 Default value: 0 |
|
Identifies the OverlineStyle text attribute, which specifies the style of the overline text decoration. This attribute is specified as a value from the TextDecorationLineStyleEnum enumerated type. Variant type: VT_I4 Default value: TextDecorationLineStyle_None |
|
Identifies the SelectionActiveEnd text attribute, which indicates the location of the caret relative to a text range that represents the currently selected text. This attribute is specified as a value from the ActiveEnd enumeration. Supported starting with Windows 8. Variant type: VT_I4 Default value: ActiveEnd_None |
|
Identifies the StrikethroughColor text attribute, which specifies the color of the strikethrough text decoration. This attribute is specified as a COLORREF, a 32-bit value used to specify an RGB or RGBA color. Variant type: VT_I4 Default value: 0 |
|
Identifies the StrikethroughStyle text attribute, which specifies the style of the strikethrough text decoration. This attribute is specified as a value from the TextDecorationLineStyleEnum enumerated type. Variant type: VT_I4 Default value: TextDecorationLineStyle_None |
|
Identifies the StyleId text attribute, which indicates the text styles in use for a text range. For a list of possible values, see Style Identifiers. Supported starting with Windows 8. Variant type: VT_I4 Default value: 0 |
|
Identifies the StyleName text attribute, which identifies the localized name of the text style in use for a text range. Supported starting with Windows 8. Variant type: VT_BSTR Default value: empty string |
|
Identifies the Tabs text attribute, which is an array specifying the tab stops for the text range. Each array element specifies a distance, in points, from the leading margin. Variant type: VT_ARRAY | VT_R8 Default value: empty array |
|
Identifies the TextFlowDirections text attribute, which specifies the direction of text flow. This attribute is specified as a combination of values from the FlowDirections enumerated type. Variant type: VT_I4 Default value: FlowDirections_Default |
|
Identifies the UnderlineColor text attribute, which specifies the color of the underline text decoration. This attribute is specified as a COLORREF, a 32-bit value used to specify an RGB or RGBA color. Variant type: VT_I4 Default value: 0 |
|
Identifies the UnderlineStyle text attribute, which specifies the style of the underline text decoration. This attribute is specified as a value from the TextDecorationLineStyleEnum enumerated type. Variant type: VT_I4 Default value: TextDecorationLineStyle_None |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows XP [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2003 [desktop apps | UWP apps] |
Header |
|