Appendix E: Text Attributes for Active Accessibility Text Services Dictionary

This appendix provides information about text attributes that are defined in IAccDictionary. It is organized as a series of tables. Each table includes information about a specific category of attributes. These categories are actually nested, but are separated below so that you can see the attributes.

Note

Active Accessibility Text Services is deprecated. Please see Microsoft Windows Text Services Framework for more information on advanced text input and natural language technologies.

Each entry in a table provides an attribute name and friendly name, type, Cascading Style Sheets (CSS) equivalent, Text Object Model (TOM) equivalent, and any additional comments where appropriate. The TOM equivalent column provides information about the TOM method used with the attribute (part of the ITextFont, ITextRange, or ITextPara interfaces). The information prior to each table indicates which interface supports the attributes; the information in the TOM equivalent table indicates the name of the method. Each entry in the TOM equivalent column is associated with two methods. For example, the Name entry is associated with the GetName and SetName methods.

For more information about these interfaces, see the Text Object Model documentation in the Windows Software Development Kit (SDK).

Font

The attributes in the following table are associated with general font attributes. The TOM equivalent is the ITextFont interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent Comment
Font_FaceName, facename
VT_BSTR Font-family: Verdana Name
Font_SizePts, sizePts
VT_I4 Font-size: Xpt Size Size is in points

Font_Style

The attributes in the following table address font style attributes (for example, whether the text is set in bold or italic). The TOM equivalent is the ITextFont interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent Comment
Font_Style_Bold, bold
VT_BOOL Font-weight: bold Bold
Font_Style_Italic, italic
VT_BOOL Font-style: italic Italic
Font_Style_SmallCaps, smallcaps
VT_BOOL Font-variant: small-caps SmallCaps
Font_Style_Capitalize,capitalize
VT_BOOL Text-transform: capitalize Not supported
Font_Style_Uppercase,uppercase
VT_BOOL Text-transform: uppercase AllCaps
Font_Style_Lowercase,lowercase
VT_BOOL Text-transform: lowercase Not supported
Font_Style_Emboss,emboss
VT_BOOL Not supported Emboss
Font_Style_Engrave,engrave
VT_BOOL Not supported Engrave
Font_Style_Hidden VT_BOOL Not supported Hidden
Font_Style_Kerning,kerning
VT_R4 Not supported Kerning Same values as GetKerning
Font_Style_Outlined,outlined
VT_BOOL Not supported Outlined
Font_Style_Position,position
VT_R4 Not supported Position
Font_Style_Protected VT_BOOL Not supported Protected
Font_Style_Shadow,shadow
VT_BOOL Line-height (minus numbers) Shadow
Font_Style_Spacing,spacing
VT_R4 Letter-spacing Spacing In points
Font_Style_Weight,weight
VT_I4 Font-weight WeightSame values as font-weight and GetWeight
Font_Style_Height,height
VT_R4 Line-height Not supported In points
Font_Style_Blink,blink
VT_BOOL Text-decoration: blink Not supported
Font_Style_Subscript,subscript
VT_BOOL Vertical-align: sub Subscript (also Position)
Font_Style_Superscript,superscript
VT_BOOL Vertical-align: super Superscript (also Position)
Font_Style_Color,color
VT_I4 Color ForeColor RBG COLORREF style
Font_Style_BackgroundColor,background_color
VT_I4 Background-color BackColor RBG COLORREF style

Font_Style_Animation

The attributes in the following table address font animation. The TOM equivalent is the ITextFont interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent
Font_Style_Animation_LasVegasLights,LasVegas_lights
VT_BOOL Not supported Animation
Font_Style_Animation_BlinkingBackground,blinking_background
VT_BOOL Not supported Animation
Font_Style_Animation_SparkleText,sparkle_text
VT_BOOL Not supported Animation
Font_Style_Animation_MarchingBlackAnts,marching_black_ants
VT_BOOL Not supported Animation
Font_Style_Animation_MarchingRedAnts,marching_red_ants
VT_BOOL Not supported Animation
Font_Style_Animation_Shimmer,Shimmer
VT_BOOL Not supported Animation
Font_Style_Animation_WipeDown,wipeDown
VT_BOOL Not supported Animation
Font_Style_Animation_WipeRight,wipeRight
VT_BOOL Not supported Animation

Font_Style_Underline

The attributes in the following table address underline styles for fonts. The TOM equivalent is the ITextFont interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent
Font_Style_Underline_Single,single
VT_BOOL Text-decoration: underline Underline
Font_Style_Underline_ Double,double
VT_BOOL Text-decoration: line-through StrikeThrough

Font_Style_Strikethrough

The attributes in the following table address strikethrough styles for fonts.

Attribute name, Friendly name Type CSS equivalent TOM equivalent
Font_Style_Strikethrough_Single,strike_through_single
VT_BOOL Not supported Not supported
Font_Style_Strikethrough_Double,strike_through_double
VT_BOOL Not supported Not supported

Font_Style_Overline

The attributes in the following table address overline styles for fonts.

Attribute name, Friendly name Type CSS equivalent TOM equivalent
Font_Style_Overline_Single,overline_single
VT_BOOL Text-decoration: overline Not supported
Font_Style_Overline_Double,overline_double
VT_BOOL Text-decoration: overline Not supported

Text

The attributes in the following table address general text formatting attributes.

Attribute name, Friendly name Type CSS equivalent TOM equivalent Comment
Text_VerticalWriting,vertical writing
VT_BOOL Not supported not supported As used by Chinese/Japanese
Text_RightToLeft,righttoleft
VT_BOOL Direction Not supported
Text_ReadOnly,read only
VT_BOOL Not supported ITextFont::CanChange, ITextRange::CanEdit The document's editable property takes precedence
Text_Language,language
VT_I4 Not supported ITextFont::GetLanguageID, ITextFont::SetLanguageID LANGID
Text_Orientation,orientation
VT_I4 Not supported Not supported 10??? of a degree
Text_EmbeddedObject,embedded_object
VT_BOOL Not supported Not supported Allows searching for embedded objects
Text_Link,link
VT_UNKNOWN Link Not supported An interface pointer to the object; call QueryInterface for any interface of interest
Text_Hyphenation,hyphenation
VT_BOOL Not supported ITextPara::GetHyphenation, ITextPara::SetHyphenation

Text_Alignment

The attributes in the following table address text alignment. The TOM equivalent is the ITextPara interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent
Text_Alignment_Left,left
VT_BOOL Text-align Alignment
Text_Alignment_Right,right
VT_BOOL Text-align Alignment
Text_Alignment_Center,center
VT_BOOL Text-align Alignment
Text_Alignment_Justify,justify
VT_BOOL Text-align Alignment

Text_Para

The attributes in the following table address formatting for paragraphs. The TOM equivalent is the ITextPara interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent Comment
Text_Para_FirstLineIndent,first_line_indent
VT_R4 Not supported FirstLineIndent In pts
Text_Para_LeftIndent,left_indent
VT_R4 Not supported LeftIndent In pts
Text_Para_RightIndent,right_indent
VT_R4 Not supported RightIndent In pts
Text_Para_SpaceAfter,space_after
VT_R4 Not supported SpaceAfter In pts
Text_Para_SpaceBefore,space_after
VT_R4 Not supported SpaceAfter In pts

Text_Para_lineSpacing

The attributes in the following table address line spacing in paragraphs. The TOM equivalent is the ITextPara interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent Comment
Text_Para_lineSpacing_Single,single
VT_BOOL Not supported LineSpacing
Text_Para_lineSpacing_OnePtFive,one_pt_five
VT_BOOL Not supported LineSpacing
Text_Para_lineSpacing_Double,double
VT_BOOL Not supported LineSpacing
Text_Para_lineSpacing_AtLeast,at_least
VT_R4 Not supported LineSpacing In lines
Text_Para_lineSpacing_Exactly,exactly
VT_R4 Not supported LineSpacing In lines
Text_Para_lineSpacing_Mutiple,multiple
VT_R4 Not supported LineSpacing In lines

Text_List

The attributes in the following table address lists and levels of text lists. The TOM equivalent is the ITextPara interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent Comment
Text_List_LevelIndex, VT_I4 Not supported ListLevelIndex Where 1 is the outermost list, 2 is the next level, and so on

Text_List_Type

The attributes in the following table address list styles for text. The TOM equivalent is the ITextPara interface.

Attribute name, Friendly name Type CSS equivalent TOM equivalent
Text_List_Type_Bullet,bullet
VT_BOOL List-type ListType
Text_List_Type_Arabic,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

App

Attribute name, Friendly name Type CSS equivalent TOM equivalent
App_IncorrectSpelling,incorrect_spelling
VT_BOOL Not supported
App_IncorrectGrammar,incorrect_grammar
VT_BOOL Not supported