附录 E:活动辅助功能文本服务字典的文本属性

本附录提供有关 IAccDictionary 中定义的文本属性的信息。 它组织为一系列表。 每个表都包含有关特定类别的属性的信息。 这些类别实际上是嵌套的,但在下面分隔,以便你可以看到属性。

注意

活动辅助功能文本服务已弃用。 有关高级文本输入和自然语言技术的详细信息,请参阅 Microsoft Windows 文本服务框架

表中的每个条目都提供属性名称和友好名称、类型、级联样式表 (CSS) 等效项、文本对象模型 (TOM) 等效项,以及适当情况下的任何其他注释。 TOM 等效列提供有关与属性一起使用的 TOM 方法的信息, (ITextFontITextRangeITextPara 接口) 的一部分。 每个表之前的信息指示哪个接口支持属性;TOM 等效表中的信息指示方法的名称。 TOM 等效列中的每个条目都与两个方法相关联。 例如,Name 条目与 GetNameSetName 方法相关联。

有关这些接口的详细信息,请参阅 Windows 软件开发工具包 (SDK) 中的 文本对象模型 文档。

字体

下表中的属性与常规字体属性相关联。 TOM 等效项是 ITextFont 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项 评论
Font_FaceName,facename
VT_BSTR Font-family:Verdana “属性”
Font_SizePts,sizePts
VT_I4 字号:Xpt 大小 大小以磅为单位

Font_Style

下表中的属性地址字体样式属性 (例如,文本是设置为粗体还是斜体) 。 TOM 等效项是 ITextFont 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项 评论
Font_Style_Bold,粗体
VT_BOOL 字体粗细:粗体 加粗
Font_Style_Italic,斜体
VT_BOOL 字体样式:斜体 斜体
Font_Style_SmallCaps、smallcaps
VT_BOOL Font-variant:small-caps SmallCaps
Font_Style_Capitalize,大写
VT_BOOL 文本转换:大写 不支持
Font_Style_Uppercase,大写
VT_BOOL 文本转换:大写 AllCaps
Font_Style_Lowercase,小写
VT_BOOL 文本转换:小写 不支持
Font_Style_Emboss,浮雕
VT_BOOL 不支持 Emboss
Font_Style_Engrave,雕刻
VT_BOOL 不支持
Font_Style_Hidden VT_BOOL 不支持 Hidden
Font_Style_Kerning,字距调整
VT_R4 不支持 字距调整 与 GetKerning 相同的值
Font_Style_Outlined,大纲
VT_BOOL 不支持 概述
Font_Style_Position,位置
VT_R4 不支持 位置
Font_Style_Protected VT_BOOL 不支持 Protected
Font_Style_Shadow,阴影
VT_BOOL 行高 (减去数字) Shadow
Font_Style_Spacing,spacing
VT_R4 字母间距 间距 以磅为单位
Font_Style_Weight,weight
VT_I4 Font-weight WeightSame 值作为 font-weight 和 GetWeight
Font_Style_Height,高度
VT_R4 Line-height 不支持 以磅为单位
Font_Style_Blink,闪烁
VT_BOOL 文本修饰:闪烁 不支持
Font_Style_Subscript,下标
VT_BOOL 垂直对齐:sub 下标 (也定位)
Font_Style_Superscript,上标
VT_BOOL 垂直对齐:超级 上标 (也定位)
Font_Style_Color,颜色
VT_I4 Color ForeColor RBG COLORREF 样式
Font_Style_BackgroundColor,background_color
VT_I4 背景色 BackColor RBG COLORREF 样式

Font_Style_Animation

下表中的属性地址字体动画。 TOM 等效项是 ITextFont 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项
Font_Style_Animation_LasVegasLights,LasVegas_lights
VT_BOOL 不支持 动画
Font_Style_Animation_BlinkingBackground,blinking_background
VT_BOOL 不支持 动画
Font_Style_Animation_SparkleText,sparkle_text
VT_BOOL 不支持 动画
Font_Style_Animation_MarchingBlackAnts,marching_black_ants
VT_BOOL 不支持 动画
Font_Style_Animation_MarchingRedAnts,marching_red_ants
VT_BOOL 不支持 动画
Font_Style_Animation_Shimmer,Shimmer
VT_BOOL 不支持 动画
Font_Style_Animation_WipeDown,wipeDown
VT_BOOL 不支持 动画
Font_Style_Animation_WipeRight,wipeRight
VT_BOOL 不支持 动画

Font_Style_Underline

下表中的属性对字体的下划线样式进行寻址。 TOM 等效项是 ITextFont 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项
Font_Style_Underline_Single,single
VT_BOOL 文本修饰:下划线 下划线
Font_Style_Underline_ Double,double
VT_BOOL 文本修饰:line-through StrikeThrough

Font_Style_Strikethrough

下表中的属性对字体的删除线样式进行寻址。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项
Font_Style_Strikethrough_Single,strike_through_single
VT_BOOL 不支持 不支持
Font_Style_Strikethrough_Double,strike_through_double
VT_BOOL 不支持 不支持

Font_Style_Overline

下表中的属性用于处理字体的超行样式。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项
Font_Style_Overline_Single,overline_single
VT_BOOL 文本修饰:上行 不支持
Font_Style_Overline_Double,overline_double
VT_BOOL 文本修饰:上行 不支持

文本

下表中的属性涉及一般文本格式属性。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项 评论
Text_VerticalWriting,垂直写入
VT_BOOL 不支持 不支持 中文/日语使用
Text_RightToLeft,righttoleft
VT_BOOL 方向 不支持
Text_ReadOnly,只读
VT_BOOL 不支持 ITextFont::CanChange、ITextRange::CanEdit 文档的可编辑属性优先
Text_Language,语言
VT_I4 不支持 ITextFont::GetLanguageID、ITextFont::SetLanguageID LANGID
Text_Orientation,方向
VT_I4 不支持 不支持 10??? 一个学位
Text_EmbeddedObject,embedded_object
VT_BOOL 不支持 不支持 允许搜索嵌入对象
Text_Link,link
VT_UNKNOWN 链接 不支持 指向 对象的接口指针;调用任何感兴趣的接口的 QueryInterface
Text_Hyphenation,断字符
VT_BOOL 不支持 ITextPara::GetHyphenation、ITextPara::SetHyphenation

Text_Alignment

下表中的属性地址文本对齐方式。 TOM 等效项是 ITextPara 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项
Text_Alignment_Left,left
VT_BOOL 文本对齐 对齐方式
Text_Alignment_Right,右
VT_BOOL 文本对齐 对齐方式
Text_Alignment_Center,center
VT_BOOL 文本对齐 对齐方式
Text_Alignment_Justify,justify
VT_BOOL 文本对齐 对齐方式

Text_Para

下表中的属性地址为段落设置格式。 TOM 等效项是 ITextPara 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项 评论
Text_Para_FirstLineIndent,first_line_indent
VT_R4 不支持 FirstLineIndent 在 pts 中
Text_Para_LeftIndent,left_indent
VT_R4 不支持 LeftIndent 在 pts 中
Text_Para_RightIndent,right_indent
VT_R4 不支持 RightIndent 在 pts 中
Text_Para_SpaceAfter,space_after
VT_R4 不支持 SpaceAfter 在 pts 中
Text_Para_SpaceBefore,space_after
VT_R4 不支持 SpaceAfter 在 pts 中

Text_Para_lineSpacing

下表中的属性用于处理段落中的行距。 TOM 等效项是 ITextPara 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项 评论
Text_Para_lineSpacing_Single,single
VT_BOOL 不支持 LineSpacing
Text_Para_lineSpacing_OnePtFive,one_pt_five
VT_BOOL 不支持 LineSpacing
Text_Para_lineSpacing_Double,double
VT_BOOL 不支持 LineSpacing
Text_Para_lineSpacing_AtLeast,at_least
VT_R4 不支持 LineSpacing In lines
Text_Para_lineSpacing_Exactly,完全
VT_R4 不支持 LineSpacing In lines
Text_Para_lineSpacing_Mutiple,多
VT_R4 不支持 LineSpacing In lines

Text_List

下表中的属性地址列表和文本列表的级别。 TOM 等效项是 ITextPara 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项 评论
Text_List_LevelIndex, VT_I4 不支持 ListLevelIndex 其中 1 是最外层的列表,2 是下一个级别,依此

Text_List_Type

下表中的属性地址列表样式的文本。 TOM 等效项是 ITextPara 接口。

属性名称、友好名称 类型 CSS 等效项 TOM 等效项
Text_List_Type_Bullet,项目符号
VT_BOOL List-type ListType
Text_List_Type_Arabic,阿拉伯语
VT_BOOL List-style-type ListType
Text_List_Type_LowerLetter,lower_letter
VT_BOOL List-style-type ListType
Text_List_Type_UpperLetter,upper_letter
VT_BOOL List-style-type ListType
Text_List_Type_LowerRoman,lower_roman
VT_BOOL List-style-type ListType
Text_List_Type_UpperRoman,upper_roman
VT_BOOL List-style-type ListType

应用

属性名称、友好名称 类型 CSS 等效项 TOM 等效项
App_IncorrectSpelling,incorrect_spelling
VT_BOOL 不支持
App_IncorrectGrammar,incorrect_grammar
VT_BOOL 不支持