Hello everyone,
i need to know how i can select the whole text in a RichTextBox by code-behind.
My target is to apply a default font size and font family to the content of the RichTextBox, but ChangeFontSize() and ChangeFontFamily() only applys to selected text and has no effect if there is no selected text. And i can't find any other possibility to set the size and family.
Or does anyone have another solution for applying the styles to the content of the RichTextBox ?
Kind Regards,
Michael
i need to know how i can select the whole text in a RichTextBox by code-behind.
My target is to apply a default font size and font family to the content of the RichTextBox, but ChangeFontSize() and ChangeFontFamily() only applys to selected text and has no effect if there is no selected text. And i can't find any other possibility to set the size and family.
Or does anyone have another solution for applying the styles to the content of the RichTextBox ?
Kind Regards,
Michael