TextUnit Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents pre-defined units of text for the purposes of navigation within a document.
Namespace: System.Windows.Automation.Text
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public Enumeration TextUnit
public enum TextUnit
Members
Member name | Description | |
---|---|---|
Character | Specifies that the text unit is one character in length. | |
Format | Specifies that the text unit is the length of a single, common format specification, such as bold, italic, or similar. | |
Word | Specifies that the text unit is one word in length. | |
Line | Specifies that the text unit is one line in length. | |
Paragraph | Specifies that the text unit is one paragraph in length. | |
Page | Specifies that the text unit is one document-specific page in length. | |
Document | Specifies that the text unit is an entire document in length. |
Remarks
The order, from smallest unit to largest, is as follows.
Character
Format
Word
Line
Paragraph
Page
Document
Version Information
Silverlight
Supported in: 5, 4
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.