TextUnit TextUnit TextUnit TextUnit Enum

Definition

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

public : enum class TextUnit
enum class winrt::Windows::UI::Xaml::Automation::Text::TextUnit : int32_t
public enum TextUnit
Public Enum TextUnit
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Character Character Character Character 0

Specifies that the text unit is one character in length.

Document Document Document Document 6

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

Format Format Format Format 1

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

Line Line Line Line 3

Specifies that the text unit is one line in length.

Page Page Page Page 5

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

Paragraph Paragraph Paragraph Paragraph 4

Specifies that the text unit is one paragraph in length.

Word Word Word Word 2

Specifies that the text unit is one word 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.

See also