Type a few lines in RadRichTextBox.
Double-clicking within a word, holding down the mouse button on the second click, and then drag it.
Actual: Dragging will move the word instead of extending the selection as it should.
Expected: The selection should be extended. Moving the word shouldn't happen unless you release after the double click and then click and drag.
Depending on the current layout of the document, invoking SetPosition() for a specific location might result in positioning the caret on the line prior to the expected one.
Steps to reproduce:
radRichTextBox.Insert("one: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("two: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("tree: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("four: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("five: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("seks: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("seven: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("eitgh: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("nine: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("ten: ");
radRichTextBox.Document.CaretPosition.SetPosition(radRichTextBox.Document.CaretPosition.Location); radRichTextBox.Focus();
Observed: The caret is positioned after "eitgh:"
Expected: The caret shouldn't change its position
Improve measure and arrange of a document and its child document elements respectively - Span, Paragraph, Table, Section and etc. This will also improve the import time for large documents.
After deleting a custom annotation using the DeleteAnnotationRange method when there is a text immediately in front of the annotation start:
and then trying to delete the last character in this former annotation range an exception is thrown (Exception: System.InvalidOperationException: 'inline does not belong to this document.')
In MS Word, the users can change the background color of the page.
A 'w:background' property is applied to the whole document in DOCX, and this property is used as a page color in Paged layout mode, and as a background color in Web layout mode.
When implementing, think of whether RadRichTextBox.Background should be synchronized with this property when RadRichTextBox.DocumentInheritsDefaultStyleSettings is true.
Workaround: Currently, background could be set using RadRichTextBox.Background property in Web layout mode, and using a custom style, as described in When the LayoutMode is Paged the Background forum thread, in Paged layout mode.
When a content control check box updates it state at run-time, any local formatting is lost.
Workaround: Formatting defined in style definition is properly kept.