This topic has not yet been rated - Rate this topic

TextUnit Enumeration

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)
public enum TextUnit
Member name Description
Supported by Silverlight for Windows Phone Character Specifies that the text unit is one character in length.
Supported by Silverlight for Windows Phone Format Specifies that the text unit is the length of a single, common format specification, such as bold, italic, or similar.
Supported by Silverlight for Windows Phone Word Specifies that the text unit is one word in length.
Supported by Silverlight for Windows Phone Line Specifies that the text unit is one line in length.
Supported by Silverlight for Windows Phone Paragraph Specifies that the text unit is one paragraph in length.
Supported by Silverlight for Windows Phone Page Specifies that the text unit is one document-specific page in length.
Supported by Silverlight for Windows Phone Document Specifies that the text unit is an entire document in length.

The order, from smallest unit to largest, is as follows.

  • Character

  • Format

  • Word

  • Line

  • Paragraph

  • Page

  • Document

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ