次の方法で共有


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
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.

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.