Dela via


AutomationTextAttributesEnum Enum

Definition

Defines constants that identify text attributes of a Microsoft UI Automation text range.

public enum class AutomationTextAttributesEnum
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class AutomationTextAttributesEnum
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum AutomationTextAttributesEnum
Public Enum AutomationTextAttributesEnum
Inheritance
AutomationTextAttributesEnum
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
AnimationStyleAttribute 40000

Identifies the AnimationStyle text attribute, which specifies the type of animation applied to the text. This attribute is specified as a value of the AutomationAnimationStyle enumeration.

BackgroundColorAttribute 40001

Identifies the BackgroundColor text attribute, which specifies the background color of the text.

BulletStyleAttribute 40002

Identifies the BulletStyle text attribute, which specifies the style of bullets used in the text range. This attribute is specified as a value of the AutomationBulletStyle enumeration.

CapStyleAttribute 40003

Identifies the CapStyle text attribute, which specifies the capitalization style for the text.

CultureAttribute 40004

Identifies the Culture text attribute, which specifies the locale of the text by locale identifier (LCID).

FontNameAttribute 40005

Identifies the FontName text attribute, which specifies the name of the font. Examples: "Arial Black"; "Arial Narrow". The font name string is not localized.

FontSizeAttribute 40006

Identifies the FontSize text attribute, which specifies the point size of the font.

FontWeightAttribute 40007

Identifies the FontWeight text attribute, which specifies the relative stroke, thickness, or boldness of the font.

ForegroundColorAttribute 40008

Identifies the ForegroundColor text attribute, which specifies the foreground color of the text.

HorizontalTextAlignmentAttribute 40009

Identifies the HorizontalTextAlignment text attribute, which specifies how the text is aligned horizontally.

IndentationFirstLineAttribute 40010

Identifies the IndentationFirstLine text attribute, which specifies how far, in points, to indent the first line of a paragraph.

IndentationLeadingAttribute 40011

Identifies the IndentationLeading text attribute, which specifies the leading indentation, in points.

IndentationTrailingAttribute 40012

Identifies the IndentationTrailing text attribute, which specifies the trailing indentation, in points.

IsHiddenAttribute 40013

Identifies the IsHidden text attribute, which indicates whether the text is hidden (true) or visible (false).

IsItalicAttribute 40014

Identifies the IsItalic text attribute, which indicates whether the text is italic (true) or not (false).

IsReadOnlyAttribute 40015

Identifies the IsReadOnly text attribute, which indicates whether the text is read-only (true) or can be modified (false).

IsSubscriptAttribute 40016

Identifies the IsSubscript text attribute, which indicates whether the text is subscript (true) or not (false).

IsSuperscriptAttribute 40017

Identifies the IsSuperscript text attribute, which indicates whether the text is subscript (true) or not (false).

MarginBottomAttribute 40018

Identifies the MarginBottom text attribute, which specifies the size, in points, of the bottom margin applied to the page associated with the text range.

MarginLeadingAttribute 40019

Identifies the MarginLeading text attribute, which specifies the size, in points, of the leading margin applied to the page associated with the text range.

MarginTopAttribute 40020

Identifies the MarginTop text attribute, which specifies the size, in points, of the top margin applied to the page associated with the text range.

MarginTrailingAttribute 40021

Identifies the MarginTrailing text attribute, which specifies the size, in points, of the trailing margin applied to the page associated with the text range.

OutlineStylesAttribute 40022

Identifies the OutlineStyles text attribute, which specifies the outline style of the text. This attribute is specified as a value of the AutomationOutlineStyles enumeration.

OverlineColorAttribute 40023

Identifies the OverlineColor text attribute, which specifies the color of the overline text decoration.

OverlineStyleAttribute 40024

Identifies the OverlineStyle text attribute, which specifies the style of the overline text decoration. This attribute is specified as a value of the AutomationTextDecorationLineStyle enumeration.

StrikethroughColorAttribute 40025

Identifies the StrikethroughColor text attribute, which specifies the color of the strikethrough text decoration.

StrikethroughStyleAttribute 40026

Identifies the StrikethroughStyle text attribute, which specifies the style of the strikethrough text decoration. This attribute is specified as a value of the AutomationTextDecorationLineStyle enumeration.

TabsAttribute 40027

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.

TextFlowDirectionsAttribute 40028

Identifies the TextFlowDirections text attribute, which specifies the direction of text flow. This attribute is specified as a combination of values of the AutomationFlowDirections enumeration.

UnderlineColorAttribute 40029

Identifies the UnderlineColor text attribute, which specifies the color of the underline text decoration.

UnderlineStyleAttribute 40030

Identifies the UnderlineStyle text attribute, which specifies the style of the underline text decoration. This attribute is specified as a value of the AutomationTextDecorationLineStyle enumeration.

AnnotationTypesAttribute 40031

Identifies the AnnotationTypes text attribute, which maintains a list of annotation type identifiers for a range of text. This attribute is specified as a value of the AnnotationType enumeration.

AnnotationObjectsAttribute 40032

Identifies the AnnotationObjects text attribute.

StyleNameAttribute 40033

Identifies the StyleName text attribute, which identifies the localized name of the text style in use for a text range.

StyleIdAttribute 40034

Identifies the StyleId text attribute, which indicates the text styles in use for a text range. This attribute is specified as a value of the AutomationStyleId enumeration.

LinkAttribute 40035

Identifies the Link text attribute, which contains the ITextRangeProvider interface of the text range that is the target of an internal link in a document.

IsActiveAttribute 40036

Identifies the IsActive text attribute, which indicates whether the control that contains the text range has the keyboard focus (true) or not (false).

SelectionActiveEndAttribute 40037

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 AutomationActiveEnd enumeration.

CaretPositionAttribute 40038

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 of the AutomationCaretPosition enumeration.

CaretBidiModeAttribute 40039

Identifies the CaretBidiMode text attribute, which indicates the direction of text flow in the text range. This attribute is specified as a value of the AutomationCaretBidiMode enumeration.

Remarks

For more info, see Text Attribute Identifiers.

Applies to

See also