Completed
Last Updated: 16 Dec 2021 14:38 by ADMIN
Release LIB 2021.3.1220 (20 Dec 2021)
Rania
Created on: 14 Dec 2021 11:16
Category: RichTextBox
Type: Bug Report
0
RichTextBox: Set Numbering Value does not apply for the currently selected line

When a whole paragraph is selected and the Set Numbering Value command is executed, the numbering value of the next paragraph is changed instead of the current one.

Workaround: Clear the selection prior to executing the command:
private void radRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is ShowSetNumberingValueDialogCommand)
    {
        this.radRichTextBox.Document.CaretPosition.MoveToPosition(this.radRichTextBox.Document.Selection.Ranges.First.StartPosition);
    }
}

0 comments