The styles shown in the Styles Gallery of the predefined UI are the same as those in the document's StyleRepository. You can read all about styles and how to create a custom one in this help article
and about the UI here
Additionally, you can remove one of the default styles like this:
However, you should be aware that there are some styles, namely Normal, TableNormal
, TableGrid and Hyperlink, which are internally used and removing them might cause unexpected crashes. What you can do in this regard is simply set their IsPrimary
property to false, which will hide them to from the Quick Styles:
This should be enough to verify that users will not be able to use them if you also remove the Change Styles
button from the ribbon, which invokes the ManageStylesDialog.
Please note that StyleRepository is a property of RadDocument, so once you change the document in the editor or create a new one, previously removed styles might again be present in the gallery. In order to achieve the desired result for all documents you should execute the code mentioned above in the DocumentChanged
event handler of RadRichTextBox.
I hope the provided information is helpful! Let me know if I can be of further assistance.