Mattiullah
Top achievements
Rank 1
Mattiullah
asked on 11 Mar 2016, 11:16 AM
i need some help in radRichTextEditor1_Keydown
If e.keycode= keys.right Then
then caret goes back two letter
and
ElseIf e.keycode= keys.left Then
then caret goes forward two letter
End If
4 Answers, 1 is accepted
0
Accepted
Hello Mattiullah,
Thank you for writing.
RadRichTextEditor exposes API for positioning within the document. Detailed information is available here: Positioning.
The described behavior can be accomplished by handling the KeyDown event of the editor this way:
I hope this helps. Should you have further questions please do not hesitate to write back.
Regards,
Hristo Merdjanov
Telerik
Thank you for writing.
RadRichTextEditor exposes API for positioning within the document. Detailed information is available here: Positioning.
The described behavior can be accomplished by handling the KeyDown event of the editor this way:
private
void
radRichTextEditor1_KeyDown(
object
sender, KeyEventArgs e)
{
if
(e.KeyCode == Keys.Right)
{
DocumentPosition position =
this
.radRichTextEditor1.Document.CaretPosition;
position.MoveToNext();
}
else
if
(e.KeyCode == Keys.Left)
{
DocumentPosition position =
this
.radRichTextEditor1.Document.CaretPosition;
position.MoveToPrevious();
}
}
I hope this helps. Should you have further questions please do not hesitate to write back.
Regards,
Hristo Merdjanov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Mattiullah
Top achievements
Rank 1
answered on 11 Mar 2016, 04:59 PM
it shows an error
SeverityCodeDescriptionProjectFileLine
ErrorBC30002Type 'DocumentPosition' is not defined.UrduC:\Users\PakDev.DESKTOP-E32MNMH\Documents\Visual Studio 2015\Projects\Urdu\Urdu\MainForm.vb32
0
Mattiullah
Top achievements
Rank 1
answered on 11 Mar 2016, 05:15 PM
thanks
0
Hello Mattiullah,
I am glad I managed to help.
Please let me know if you need further assistance.
Regards,
Hristo Merdjanov
Telerik
I am glad I managed to help.
Please let me know if you need further assistance.
Regards,
Hristo Merdjanov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.