This is a migrated thread and some comments may be shown as answers.

change font from selected text

1 Answer 125 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 16 Nov 2011, 06:26 PM
I have been looking but I haven't found yet where I can change the font format (color, style, size, etc) of a font from selected text within the radrichtextbox. I wish to do this programmatically in vb.net. I know this is pretty straightforward, but can someone point me in the right direction?

If the user has the text "this is only a test" in the richtextbox, and wishes to highlight the word "only" with their mouse and change the color and font family/size to Arial 14pt, blue color by clicking button, how can I do this directly in code for the button click event?

Don't want to use any ribbon controls or font dialogs at this time, just trying to understand which classes/methods involved.


Thanks

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 21 Nov 2011, 09:03 AM
Hi Chuck,
You can find more information on this topic in our help sections about positioning, selection, and search.

Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Charles
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or