Text Elements

The Inline class derives from TextElement, a class representing all kinds of text content. Note that TextElements are not UIElements; they do not individually participate in the standard UIElement mechanisms such as layout, input events, and focus. They are specifically for text controls and text-specific layout rules are applied to them.

Two types of TextElements exist—Inlines and Blocks. A Block is a rectangular region, whereas an Inline is a region that flows more freely with text, potentially occupying a nonrectangular space (flowing from the end of one line to the beginning of the next). There are several more types of Inline objects besides the previously seen Run, LineBreak, and Underline. All the relevant classes and their ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.