Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Microsoft.UI.Text Namespace

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.

Provides support for working with textual content.

Classes

Name Description
FontWeights

Provides a set of predefined font weights as static property values.

RichEditTextDocument

Represents a rich text document that can be loaded, saved, and edited.

RichEditTextRange

Represents a span of continuous text in a RichEditTextDocument, and provides editing and data-binding properties and methods that allow an app to select, examine, and change document content.

TextConstants

Defines a set of constants that are used with various methods in the Windows.UI.Text namespace.

Interfaces

Name Description
ITextCharacterFormat

Defines the default character formatting attributes of a document, or the current character formatting attributes of a text range.

ITextParagraphFormat

Defines the default paragraph formatting attributes of a document, or the current paragraph formatting attributes of a text range.

ITextRange

Represents a span of continuous text in a document, and provides powerful editing and data-binding properties and methods that allow an app to select, examine, and change document text.

ITextSelection

Represents the currently selected text of a document.

Enums

Name Description
CaretType

Specifies the caret type.

FindOptions

Specifies the options to use when doing a text search.

FormatEffect

Defines values that indicate the state of a character or paragraph formatting property.

HorizontalCharacterAlignment

Specifies the horizontal position of a character relative to a bounding rectangle.

LetterCase

Represents the character case formatting.

LineSpacingRule

Specifies options for line-spacing rules.

LinkType

Indicates the link type of a range of text.

MarkerAlignment

Defines bullet and numbering alignment.

MarkerStyle

Specifies the style used to mark the item paragraphs in a list.

MarkerType

Specifies the kind of characters used to mark the item paragraphs in a list.

ParagraphAlignment

Specifies values for aligning paragraphs.

ParagraphStyle

Specifies the paragraph style.

PointOptions

Defines options for specifying or retrieving a point.

RangeGravity

Specifies the gravity for a text range.

RichEditMathMode

Defines constants that specify whether a RichEditBox interprets input as math (MathML) or text.

SelectionOptions

Describes the options that apply to a selection.

SelectionType

Specifies the type of a selection.

TabAlignment

Alignment options for tab positions.

TabLeader

The character that is used to fill the space taken by a tab character.

TextGetOptions

Specifies options for retrieving the text in a document or text range.

TextRangeUnit

Specifies the units to use when navigating a text range.

TextScript

Specifies the character repertoire for a run of character formatting.

TextSetOptions

Specifies options for setting the text in a text range.

UnderlineType

Specifies the type of character underlining.

VerticalCharacterAlignment

Specifies the vertical position of a character relative to a bounding rectangle.


Feedback

Was this page helpful?