Windows.UI.Xaml.Documents Namespace

Provides basic text and document model classes.

Equivalent WinUI namespace: Microsoft.UI.Xaml.Documents.

Classes

Block

An abstract class that provides a base for all block-level content elements.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Block.

BlockCollection

Represents a collection of Block elements.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.BlockCollection.

Bold

Provides an inline-level content element that causes content to render with a bold font weight.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Bold.

ContactContentLinkProvider

Defines a ContentLink that contains a contact.

ContentLink

Provides an inline-level content element that provides facilities for hosting links to contextual information.

ContentLinkInvokedEventArgs

Provides event data for the ContentLink.Invoked event.

ContentLinkProvider

Defines the type of ContentLink used in a text control.

ContentLinkProviderCollection

Represents a collection of ContentLinkProvider objects that can be individually accessed by index.

Glyphs

Provides a visual representation of letters, characters, or symbols, in a specific font and style.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Glyphs.

Hyperlink

Provides an inline-level content element that provides facilities for hosting hyperlinks.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Hyperlink.

HyperlinkClickEventArgs

Provides data for the Hyperlink.Click event.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.HyperlinkClickEventArgs.

Inline

Provides a base class for inline text elements, such as Span and Run.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Inline.

InlineCollection

Represents a collection of Inline elements.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.InlineCollection.

InlineUIContainer

Provides an inline content element that enables UIElement types to be embedded in the content of a RichTextBlock.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.InlineUIContainer.

Italic

Provides an inline-level flow content element that causes content to render with an italic font style.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Italic.

LineBreak

Represents an inline element that causes a new line to begin in content when rendered in a text container.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.LineBreak.

Paragraph

Provides a block-level content element that is used to group content into a paragraph.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Paragraph.

PlaceContentLinkProvider

Defines a ContentLink that contains a place.

Run

Represents a discrete section of formatted or unformatted text.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Run.

Span

Groups other Inline content elements. Parent class for Bold, Hyperlink, Italic and Underline.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Span.

TextElement

An abstract class used as the base class for the also-abstract Block and Inline classes. TextElement supports common API for classes involved in the XAML text object model, such as properties that control text size, font families and so on.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.TextElement.

TextHighlighter

Represents an object that highlights one or more ranges of text.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.TextHighlighter.

TextHighlighterBase

The base class for TextHighlighter.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.TextHighlighterBase.

TextPointer

Represents a position within a text element.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.TextPointer.

Typography

Provides access to a set of Microsoft OpenType typography properties. These properties are implemented as XAML attached properties such that they can be set from text object model properties as well as from specific text controls.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Typography.

Underline

Provides an inline-level content element that causes content to render with an underlined text decoration.

Equivalent WinUI class: Microsoft.UI.Xaml.Documents.Underline.

Structs

TextRange

Represents a selection of text content.

Equivalent WinUI struct: Microsoft.UI.Xaml.Documents.TextRange.

Enums

LogicalDirection

Specifies a logical direction in which to perform certain text operations, such as inserting, retrieving, or navigating through text relative to a specified position (a TextPointer ).

Equivalent WinUI enum: LogicalDirection.

UnderlineStyle

Defines constants that specify the look of the underline used for an element.

Equivalent WinUI enum: UnderlineStyle.