RadRichTextBox Basealignment is not changing

0 Answers 39 Views
General Discussions RichTextBox
Shraddha
Top achievements
Rank 1
Shraddha asked on 04 Jun 2024, 06:25 AM

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?

Dimitar
Telerik team
commented on 04 Jun 2024, 07:12 AM

Hi Shraddha, 

You need to select some content first or insert new text after the change: 

I hope this helps. Should you have any other questions do not hesitate to ask.

No answers yet. Maybe you can help?

Tags
General Discussions RichTextBox
Asked by
Shraddha
Top achievements
Rank 1
Share this question
or