To reproduce:
Import a document with RtfFormatProvider: RadDocument doc = rtfFormatProvider.Import(File.ReadAllText("WordpadRTF.rtf"));
use doc.Selection.SelectAll();
you will notice that the selection has skipped the first word
Workaround:
DocumentPosition firstPositionInDoc = new DocumentPosition(doc.DocumentLayoutBox, true);
DocumentPosition lastPositionInDoc = new DocumentPosition(doc.DocumentLayoutBox, true);
firstPositionInDoc.MoveToFirstPositionInDocument();
lastPositionInDoc.MoveToLastPositionInDocument();
doc.Selection.SetSelectionStart(firstPositionInDoc);
doc.Selection.AddSelectionEnd(lastPositionInDoc);
Resolution:
This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.