Enum uiautomation::types::TextAttribute
source · #[repr(i32)]pub enum TextAttribute {
Show 43 variants
AnimationStyle = 40_000,
BackgroundColor = 40_001,
BulletStyle = 40_002,
CapStyle = 40_003,
Culture = 40_004,
FontName = 40_005,
FontSize = 40_006,
FontWeight = 40_007,
ForegroundColor = 40_008,
HorizontalTextAlignment = 40_009,
IndentationFirstLine = 40_010,
IndentationLeading = 40_011,
IndentationTrailing = 40_012,
IsHidden = 40_013,
IsItalic = 40_014,
IsReadOnly = 40_015,
IsSubscript = 40_016,
IsSuperscript = 40_017,
MarginBottom = 40_018,
MarginLeading = 40_019,
MarginTop = 40_020,
MarginTrailing = 40_021,
OutlineStyles = 40_022,
OverlineColor = 40_023,
OverlineStyle = 40_024,
StrikethroughColor = 40_025,
StrikethroughStyle = 40_026,
Tabs = 40_027,
TextFlowDirections = 40_028,
UnderlineColor = 40_029,
UnderlineStyle = 40_030,
AnnotationTypes = 40_031,
AnnotationObjects = 40_032,
StyleName = 40_033,
StyleId = 40_034,
Link = 40_035,
IsActive = 40_036,
SelectionActiveEnd = 40_037,
CaretPosition = 40_038,
CaretBidiMode = 40_039,
LineSpacing = 40_040,
BeforeParagraphSpacing = 40_041,
AfterParagraphSpacing = 40_042,
}
Expand description
Defines enum for windows::Win32::UI::Accessibility::UIA_TEXTATTRIBUTE_ID
.
This type describes the named constants used to identify text attributes of a Microsoft UI Automation text range.
Variants§
AnimationStyle = 40_000
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.
BackgroundColor = 40_001
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.
BulletStyle = 40_002
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.
CapStyle = 40_003
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.
Culture = 40_004
Identifies the Culture text attribute, which specifies the locale of the text by locale identifier (LCID).
FontName = 40_005
Identifies the FontName text attribute, which specifies the name of the font. Examples: Arial Black; Arial Narrow. The font name string is not localized.
FontSize = 40_006
Identifies the FontSize text attribute, which specifies the point size of the font.
FontWeight = 40_007
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:
ForegroundColor = 40_008
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.
HorizontalTextAlignment = 40_009
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.
IndentationFirstLine = 40_010
Identifies the IndentationFirstLine text attribute, which specifies how far, in points, to indent the first line of a paragraph.
IndentationLeading = 40_011
Identifies the IndentationLeading text attribute, which specifies the leading indentation, in points.
IndentationTrailing = 40_012
Identifies the IndentationTrailing text attribute, which specifies the trailing indentation, in points.
IsHidden = 40_013
Identifies the IsHidden text attribute, which indicates whether the text is hidden (TRUE) or visible (FALSE).
IsItalic = 40_014
Identifies the IsItalic text attribute, which indicates whether the text is italic (TRUE) or not (FALSE).
IsReadOnly = 40_015
Identifies the IsReadOnly text attribute, which indicates whether the text is read-only (TRUE) or can be modified (FALSE).
IsSubscript = 40_016
Identifies the IsSubscript text attribute, which indicates whether the text is subscript (TRUE) or not (FALSE).
IsSuperscript = 40_017
Identifies the IsSuperscript text attribute, which indicates whether the text is subscript (TRUE) or not (FALSE).
MarginBottom = 40_018
Identifies the MarginBottom text attribute, which specifies the size, in points, of the bottom margin applied to the page associated with the text range.
MarginLeading = 40_019
Identifies the MarginLeading text attribute, which specifies the size, in points, of the leading margin applied to the page associated with the text range.
MarginTop = 40_020
Identifies the MarginTop text attribute, which specifies the size, in points, of the top margin applied to the page associated with the text range.
MarginTrailing = 40_021
Identifies the MarginTrailing text attribute, which specifies the size, in points, of the trailing margin applied to the page associated with the text range.
OutlineStyles = 40_022
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.
OverlineColor = 40_023
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.
OverlineStyle = 40_024
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.
StrikethroughColor = 40_025
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.
StrikethroughStyle = 40_026
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.
Tabs = 40_027
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.
TextFlowDirections = 40_028
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.
UnderlineColor = 40_029
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.
UnderlineStyle = 40_030
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.
AnnotationTypes = 40_031
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.
AnnotationObjects = 40_032
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.
StyleName = 40_033
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.
StyleId = 40_034
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.
Link = 40_035
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.
IsActive = 40_036
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.
SelectionActiveEnd = 40_037
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.
CaretPosition = 40_038
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.
CaretBidiMode = 40_039
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.
LineSpacing = 40_040
Identifies the LineSpacing text attribute, which specifies the spacing between lines of text.
BeforeParagraphSpacing = 40_041
Identifies the BeforeParagraphSpacing text attribute, which specifies the size of spacing before the paragraph.
AfterParagraphSpacing = 40_042
Identifies the AfterParagraphSpacing text attribute, which specifies the size of spacing after the paragraph.
Trait Implementations§
source§impl Clone for TextAttribute
impl Clone for TextAttribute
source§fn clone(&self) -> TextAttribute
fn clone(&self) -> TextAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TextAttribute
impl Debug for TextAttribute
source§impl From<UIA_TEXTATTRIBUTE_ID> for TextAttribute
impl From<UIA_TEXTATTRIBUTE_ID> for TextAttribute
source§impl Into<UIA_TEXTATTRIBUTE_ID> for TextAttribute
impl Into<UIA_TEXTATTRIBUTE_ID> for TextAttribute
source§impl PartialEq for TextAttribute
impl PartialEq for TextAttribute
source§fn eq(&self, other: &TextAttribute) -> bool
fn eq(&self, other: &TextAttribute) -> bool
self
and other
values to be equal, and is used
by ==
.