In my project, there is radrichtextbox. I am trying to change fontfamily and basealignment of the text present inside the radrichtextbox whenever that radrichtextbox loads using below code.
radRichTextBox.FontFamily = new System.Windows.Media.FontFamily("Symbol");
radRichTextBox.ChangeBaselineAlignment(Telerik.Windows.Documents.Model.BaselineAlignment.Subscript);
But I see no change in the text. Am I missing something?
Hi Shraddha,
You need to select some content first or insert new text after the change:
- WPF RichTextBox - Selection - Telerik UI for WPF
- WPF RichTextBox - RadDocumentEditor - Telerik UI for WPF
I hope this helps. Should you have any other questions do not hesitate to ask.