This post introduces the new Texts in Shapes feature in WPF RadRichTextBox and describes how you can add text to shapes.
In R2 2021 we introduced support for shapes, which was one of the most-demanded features in the RadRichTextBox. You can find more information about this in the following blog post: Shapes and DrawingML Are Now Supported in RadRichTextBox.
Now, with R3 2021, the end user can add text to the shapes and apply different styling options to it.
Adding text to an existing shape is easy and straightforward. You can start typing directly or use the context menu.
The second tab allows you to set the shape fill and outline properties. You can choose from various solid and gradient lines and fills.
You can set other properties by selecting the text in the shape (the caret must be in the shape as well) and then going to the Home tab and setting properties there.
You can set properties like alignment, background color, fore color, font family, font size and others. Essentially, the shape contains another RadRichTextBox inside it which allows you to style text as in a normal RadRichTextBox and add extra elements.
In case you still haven’t tried Telerik UI for WPF and RadRichTextBox, use the button below to obtain a trial version and explore all the features and possibilities of the libraries.
If you are already familiar with the package, don’t forget that we are eager to hear your feedback and would be very happy to hear any ideas and recommendations you might have. Feel free to drop us a comment below sharing your thoughts. Or visit the Telerik UI for WPF, and Document Processing Libraries dedicated Feedback Portals and let us know if you have any suggestions or if you need any specific features and controls.
Dimitar Karamfilov is a Support Officer in the UI for WinForms team. He joined Telerik after graduating from the Telerik Academy in 2013. Apart from work he likes outdoor activities and reading philosophy literature.