RichText Class
A text whose parts have their own style: fonts, size, paint, decorations. Built by RichTextBuilder.
public sealed class RichTextRemarks
The spans follow each other and cover the text. A span is not a paragraph and not a line: letters of two spans can kern, join and form a ligature when their spans only differ by what is painted (brush, decorations).
A rich text is immutable.
Properties
| Name | Description |
|---|---|
| Spans | Gets the spans, in the order of the text. |
| Text | Gets the whole text. |
Spans
RichText.csGets the spans, in the order of the text.
public IReadOnlyList<TextSpan> Spans { get; }