TextUnit Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents predefined units of text for the purposes of navigation within a document.
public enum class TextUnit
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
enum class TextUnit
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum TextUnit
Public Enum TextUnit
- Inheritance
-
TextUnit
- Attributes
Name | Value | Description |
---|---|---|
Character | 0 | Specifies that the text unit is one character in length. |
Format | 1 | Specifies that the text unit is the length of a single, common format specification, such as bold, italic, or similar. |
Word | 2 | Specifies that the text unit is one word in length. |
Line | 3 | Specifies that the text unit is one line in length. |
Paragraph | 4 | Specifies that the text unit is one paragraph in length. |
Page | 5 | Specifies that the text unit is one document-specific page in length. |
Document | 6 | Specifies that the text unit is an entire document in length. |
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.
Produkt | Wersje |
---|---|
Windows App SDK | 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |