Windows Dev Center

TextUnit enumeration

Represents predefined units of text for the purposes of navigation within a document.

Syntax


public enum TextUnit

Members

The TextUnit enumeration has these members.

MemberValueDescription
Character0

Specifies that the text unit is one character in length.

Format1

Specifies that the text unit is the length of a single, common format specification, such as bold, italic, or similar.

Word2

Specifies that the text unit is one word in length.

Line3

Specifies that the text unit is one line in length.

Paragraph4

Specifies that the text unit is one paragraph in length.

Page5

Specifies that the text unit is one document-specific page in length.

Document6

Specifies that the text unit is an entire document in length.

Remarks

TextUnit defines an input for the Move method and related methods of the TextRange automation control pattern. ITextRangeProvider is the definition interface if you want to support the TextRange automation pattern as part of a Windows Runtime custom control. For more info, see ITextRangeProvider or Text and TextRange Control Patterns.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Automation.Text
Windows::UI::Xaml::Automation::Text [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Text
Windows::UI::Xaml::Automation::Text [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]
[WebHostHidden()]

See also

ITextRangeProvider
Custom automation peers

 

 

Show:
© 2015 Microsoft