I've got a RichTextEditor that I'm filling with the output from an HtmlFormatProvider.Import
After I've imported, I'd like to change the font and font size for the entire document. Is there a way to do this?
1 Answer, 1 is accepted
0
Hristo
Telerik team
answered on 17 Dec 2014, 07:41 AM
Hello Michael,
Thank you for contacting Telerik Support.
Please refer to this help topic where you can find information regarding the Selection of text in our RichTextEditor control. Below is a code snippet with a sample implementation of selecting the available text in a RadDocument element and applying FontFamily and FontSize settings:
public Form1()
{
InitializeComponent();
//Load html document
using (Stream stream = new MemoryStream(File.ReadAllBytes(@"..\..\..\sample.html")))
{
HtmlFormatProvider provider = new HtmlFormatProvider();
I would also suggest that you get acquainted with our demo application and RichTextEditor example. The source code of the project is usually located at: C:\Program Files (x86)\Telerik\UI for WinForms Q3 2014\Examples\RichTextEditor.
I hope that this information is useful. Should you have further question do not hesitate to write back.
Regards,
Hristo
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.