Unplanned
Last Updated: 08 Dec 2022 12:43 by Caesar
Caesar
Created on: 08 Dec 2022 12:43
Category: RichTextBox
Type: Bug Report
0
RichTextBox: The AddParagraphToSelection method adds the first row of a table when it is the element after the paragraph

 The AddParagraphToSelection method adds the first row of a table when it is the element after the paragraph. 

To workaround this manually select the paragraph:

var para = caret.GetCurrentParagraph();
DocumentPosition pos = new DocumentPosition(doc);
pos.MoveToDocumentElementStart(para);
selection.AddSelectionStart(pos); 
pos.MoveToDocumentElementEnd(para); 
selection.AddSelectionEnd(pos);

 this.radRichTextBox.Delete(false);

0 comments