This is a migrated thread and some comments may be shown as answers.

First Line Indent

1 Answer 91 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Winner Software Pvt. Ltd.
Top achievements
Rank 1
Winner Software Pvt. Ltd. asked on 24 Nov 2015, 09:20 AM
We have designed Silverlight application like word, using telerik windows controls in visual studio 2010.In RichTextBox first line indent , hanging indent and left indent of paragraph is not working properly. When I try to give tab to the paragraph, it moves left indent also,so cant give proper indentation.It moves the first line indent and left indent by half of the normal word document moves.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 25 Nov 2015, 09:08 AM
Hello,

Thank your for your interest in RadRichTextBox.

We are aware of the issue you are experiencing and we can confirm it is a bug in RadRichTextBox. We have already logged this in our internal bug-tracking system. However, I cannot commit to a specific time-frame when a fix will be available.

For now, you could subscribe to the related Pressing Tab when is at the beginning of a paragraph should change first line indent instead of left indent item in our feedback portal in order to be notified about any related changes.

As a workaround, you could use the one which is shown in the above-mentioned feedback item. However, if you do not desire to change the indentation and just to insert a tab, you could use the following code snippet instead of the one from the item:
this.radRichTextBox.PreviewEditorKeyDown += (object sender, PreviewEditorKeyEventArgs e) =>
{
    if (e.Key != System.Windows.Input.Key.Tab)
    {
        return;
    }
 
    this.radRichTextBox.Insert("\t");
    e.OriginalArgs.Handled = true;
};

Sorry for the caused inconvenience.

I hope this helps.

Regards,
Todor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Winner Software Pvt. Ltd.
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or