Thank you for choosing RadRichTextBox!
The control is a quite complex one and the document model supports many features. For this reason the internal logic does not actually depend on length or numeric indices, but uses DocumentPositions. Document elements are not associated with length, nor are document positions with a particular letter in the word since there is other content that might be present on a position - annotation, image, formatting symbol.
Please take a look at this help articles about Search
functionalities for a reference.
Basically, if you are going to replace a word, you perform a search for a string and then you could do as you please with the results. The code-snippet below illustrates how to create a find/replace method:
sender, RoutedEventArgs e)
DocumentTextSearch search =
I hope this helps! Let me know how it goes.
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.