Hi, I am using a radrichtexteditor for displaying information about our application. I set the Text property of my radrichtexteditor.
The text now is formatted with a size and font that I cannot work with. So i tried to set another Font and size. I found the following code online.
loRadRichTextEditor:Document:Selection:SelectAll().
loRadRichTextEditor:ChangeFontFamily(NEW Telerik.WinControls.RichTextEditor.UI.FontFamily("Courier New":U)).
loRadRichTextEditor:ChangeFontSize(Telerik.WinForms.Documents.Model.Unit:PointToDip(8.75)).
loRadRichTextEditor:RichTextBoxElement:ChangeParagraphLineSpacing(0.5).
loRadRichTextEditor:RichTextBoxElement:ChangeParagraphSpacingAfter(12).
loRadRichTextEditor:DocumentInheritsDefaultStyleSettings = TRUE.
loRadRichTextEditor:Document:Selection:Clear().
This code is working fine but there are several radrichtexteditors on my view(tabs) and I have to set these properties for every control so bad performance. Is there a way to set the Font and the size more easily ?
Sincerely,
Dominik Zöbl