Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.71 KB

File metadata and controls

45 lines (30 loc) · 1.71 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Automation.Text.TextUnit
winrt enum

TextUnit

-description

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

-enum-fields

-field Character:0

Specifies that the text unit is one character in length.

-field Format:1

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

-field Word:2

Specifies that the text unit is one word in length.

-field Line:3

Specifies that the text unit is one line in length.

-field Paragraph:4

Specifies that the text unit is one paragraph in length.

-field Page:5

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

-field Document:6

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

-remarks

TextUnit defines an input for the Microsoft.UI.Text.ITextRange.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.

-examples

-see-also

ITextRangeProvider, Custom automation peers