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 XAML Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.