The document could have many styles applied on its different document elements and I am not sure what exactly you need to access. I will list several of the options that might help you achieve the desired goal.
- The default style of the document you could obtain through the Style property of RadDocument:
StyleDefinition defaultDocumentStyle =
- You could check the style of the Span in which the caret is currently positioned:
StyleDefinition currentSpanStyle =
- All the styles that are used in the document could be accessed through the StyleRepository. The next snippet demonstrates how you could obtain the StyleDefinition for the Normal style:
StyleDefinition normalStyle =
More information on working with styles in RadRichTextBox you could find in our documentation
Hope this is helpful.
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.