AutomationTextAttributesEnum 枚举

定义

定义标识 Microsoft UI 自动化文本范围的文本属性的常量。

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
继承
AutomationTextAttributesEnum
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

AnimationStyleAttribute 40000

标识 AnimationStyle 文本属性,该属性指定应用于文本的动画类型。 此属性指定为 AutomationAnimationStyle 枚举的值。

AnnotationObjectsAttribute 40032

标识 AnnotationObjects 文本属性。

AnnotationTypesAttribute 40031

标识 AnnotationTypes 文本属性,该属性维护文本范围的批注类型标识符列表。 此属性指定为 AnnotationType 枚举的值。

BackgroundColorAttribute 40001

标识 BackgroundColor 文本属性,该属性指定文本的背景色。

BulletStyleAttribute 40002

标识 BulletStyle 文本属性,该属性指定文本范围中使用的项目符号的样式。 此属性指定为 AutomationBulletStyle 枚举的值。

CapStyleAttribute 40003

标识 CapStyle 文本属性,该属性指定文本的大写样式。

CaretBidiModeAttribute 40039

标识 CaretBidiMode 文本属性,该属性指示文本范围中的文本流动方向。 此属性指定为 AutomationCaretBidiMode 枚举的值。

CaretPositionAttribute 40038

标识 CaretPosition 文本属性,该属性指示插入符号是位于文本范围中文本行的开头还是末尾。 此属性指定为 AutomationCaretPosition 枚举的值。

CultureAttribute 40004

标识 Culture 文本属性,该属性按 LCID) 的区域设置标识符 (指定文本的区域设置。

FontNameAttribute 40005

标识 FontName 文本属性,该属性指定字体的名称。 示例:“Arial Black”;“Arial Narrow”。 字体名称字符串未本地化。

FontSizeAttribute 40006

标识 FontSize 文本属性,该属性指定字体的点大小。

FontWeightAttribute 40007

标识 FontWeight 文本属性,该属性指定字体的相对笔划、粗细或粗体。

ForegroundColorAttribute 40008

标识 ForegroundColor 文本属性,该属性指定文本的前景色。

HorizontalTextAlignmentAttribute 40009

标识 HorizontalTextAlignment 文本属性,该属性指定文本的水平对齐方式。

IndentationFirstLineAttribute 40010

标识 IndentationFirstLine 文本属性,该属性指定段落首行缩进的距离(以磅为单位)。

IndentationLeadingAttribute 40011

标识 IndentationLeading 文本属性,该属性以磅为单位指定前导缩进。

IndentationTrailingAttribute 40012

标识 IndentationTrailing 文本属性,该属性以磅为单位指定尾随缩进。

IsActiveAttribute 40036

标识 IsActive 文本属性,该属性指示包含文本范围的控件是否具有键盘焦点 (true) (false) 。

IsHiddenAttribute 40013

标识 IsHidden 文本属性,该属性指示文本是隐藏 (true) 还是可见 (false) 。

IsItalicAttribute 40014

标识 IsItalic 文本属性,该属性指示文本是否为斜体 (true) (false) 。

IsReadOnlyAttribute 40015

标识 IsReadOnly 文本属性,该属性指示文本是只读 (true) ,还是可 (false) 修改。

IsSubscriptAttribute 40016

标识 IsSubscript 文本属性,该属性指示文本是否为下标 (true) (false) 。

IsSuperscriptAttribute 40017

标识 IsSuperscript 文本属性,该属性指示文本是否为下标 (true) (false) 。

LinkAttribute 40035

标识 Link 文本属性,该属性包含作为文档中内部链接目标的文本范围的 ITextRangeProvider 接口。

MarginBottomAttribute 40018

标识 MarginBottom 文本属性,该属性指定应用于与文本范围关联的页面的下边距的大小(以磅为单位)。

MarginLeadingAttribute 40019

标识 MarginLeading 文本属性,该属性指定应用于与文本范围关联的页面的前导边距的大小(以磅为单位)。

MarginTopAttribute 40020

标识 MarginTop 文本属性,该属性指定应用于与文本范围关联的页面的上边距的大小(以磅为单位)。

MarginTrailingAttribute 40021

标识 MarginTrailing 文本属性,该属性指定应用于与文本范围关联的页面的尾随边距的大小(以磅为单位)。

OutlineStylesAttribute 40022

标识 OutlineStyles 文本属性,该属性指定文本的大纲样式。 此属性指定为 AutomationOutlineStyles 枚举的值。

OverlineColorAttribute 40023

标识 OverlineColor 文本属性,该属性指定上划线文本修饰的颜色。

OverlineStyleAttribute 40024

标识 OverlineStyle 文本属性,该属性指定上划线文本修饰的样式。 此属性指定为 AutomationTextDecorationLineStyle 枚举的值。

SelectionActiveEndAttribute 40037

标识 SelectionActiveEnd 文本属性,该属性指示插入点相对于表示当前选定文本的文本范围的位置。 此属性指定为 AutomationActiveEnd 枚举中的值。

StrikethroughColorAttribute 40025

标识 StrikethroughColor 文本属性,该属性指定删除线文本修饰的颜色。

StrikethroughStyleAttribute 40026

标识 StrikethroughStyle 文本属性,该属性指定删除线文本修饰的样式。 此属性指定为 AutomationTextDecorationLineStyle 枚举的值。

StyleIdAttribute 40034

标识 StyleId 文本属性,该属性指示用于文本范围的文本样式。 此属性指定为 AutomationStyleId 枚举的值。

StyleNameAttribute 40033

标识 StyleName 文本属性,该属性标识用于文本范围的文本样式的本地化名称。

TabsAttribute 40027

标识 Tabs 文本属性,该属性是指定文本范围的制表位的数组。 每个数组元素指定与前导边距的距离(以磅为单位)。

TextFlowDirectionsAttribute 40028

标识 TextFlowDirections 文本属性,该属性指定文本流的方向。 此属性指定为 AutomationFlowDirections 枚举的值的组合。

UnderlineColorAttribute 40029

标识 UnderlineColor 文本属性,该属性指定下划线文本修饰的颜色。

UnderlineStyleAttribute 40030

标识 UnderlineStyle 文本属性,该属性指定下划线文本修饰的样式。 此属性指定为 AutomationTextDecorationLineStyle 枚举的值。

注解

有关详细信息,请参阅 文本属性标识符

适用于

另请参阅