I have two Telerik rich text boxes in my winforms application. I am trying to append the formatted text from one of the rich textboxes to all areas where a predefined section in the first rich textbox.
The below code works for finding the required predefined sections - Once this is done, There was an option to insert a text but I couldnt find anything where I could insert the formatted text.
The below code works for finding the required predefined sections - Once this is done, There was an option to insert a text but I couldnt find anything where I could insert the formatted text.
radRichTextBox1.Document.Selection.Clear();
DocumentTextSearch search = new DocumentTextSearch(radRichTextBox1.Document);
foreach (var textRange in search.FindAll("Section1"))
{
radRichTextBox1.Document.Selection.AddSelectionStart(textRange.StartPosition);
this.radRichTextBox1.Document.Selection.AddSelectionEnd(textRange.EndPosition);
// what to do here to insert the formattted text from radRichTextBox2
}