Hi @Steve Andrews , Welcome to Microsoft Q&A,
The RichTextBox control is based on the Windows RichEdit control, and different versions of the RichEdit control support different versions of the RTF specification. Specifically:
- RichEdit 1.0: Support RTF 1.0 specification.
- RichEdit 2.0: Support RTF 1.2 specification.
- RichEdit 3.0: Support RTF 1.5 specification.
- RichEdit 4.1 and higher: Supports RTF 1.8 and higher (including parts of the Office Open XML specification).
In .NET 6 and later (including .NET 8), the RichTextBox control defaults to RichEdit 4.1, so it supports most features in the RTF 1.8 specification.
The RTF control words and elements supported by the RichTextBox control are determined by the underlying RichEdit control. Generally speaking, it supports most common RTF control words, but for some advanced or custom control words, it may ignore or strip them. This includes:
- Font table (fonttbl): Supported, but unknown fonts will be replaced based on system fonts.
- Color table (colortbl): Supported.
- Stylesheet: Limited support, custom styles may be ignored.
- Paragraph format (par, pard, qj, etc.): Supported.
- Character format (b, i, ul, etc.): Supported.
- Picture: Supported.
- Comments (*\v): Usually ignored.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.