Export (0) Print
Expand All

TextUnit Enumeration

Represents pre-defined units of text for the purposes of navigation within a document.

Namespace: System.Windows.Automation.Text
Assembly: UIAutomationTypes (in uiautomationtypes.dll)

[ComVisibleAttribute(true)] 
[GuidAttribute("A044E5C8-FC20-4747-8CC8-1487F9CBB680")] 
public enum TextUnit
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute GuidAttribute("A044E5C8-FC20-4747-8CC8-1487F9CBB680") */ 
public enum TextUnit
ComVisibleAttribute(true) 
GuidAttribute("A044E5C8-FC20-4747-8CC8-1487F9CBB680") 
public enum TextUnit

 Member nameDescription
CharacterSpecifies that the text unit is one character in length. 
DocumentSpecifies that the text unit is an entire document in length. 
FormatSpecifies that the text unit is the length of a single, common format specification, such as bold, italic, or similar. 
LineSpecifies that the text unit is one line in length. 
PageSpecifies that the text unit is one document-specific page in length. 
ParagraphSpecifies that the text unit is one paragraph in length. 
WordSpecifies that the text unit is one word in length. 

Any method using TextUnit will deprecate up to the next supported TextUnit if the given TextUnit is not supported by the control.

The order, from smallest unit to largest, is listed below.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft