Hi all,I try to figure out how to drag and drop text within an UltraTextEditor.While I know about implementing Drag/Drop behavior in general I try to drag the selected text only.
One task is to figure out if the mousedown of the left button occured on the selected text.
For standard RichTextBox there exists a GetCharIndexFromPosition function, but not for the UltraTextEditor.
How can I do that, is there maybe an option I missed?
Any help is kindly appreciated
best regards
Andy
Hello Andy,
You might want to consider using the 'UltraFormattedTextEditor' since there you could use the following method:
ultraFormattedTextEditor1.EditInfo.GetCaretPositionFromMouseLocation(new Point());
Please do not hesitate to contact us if you need any additional assistance.
Hi Boris,good hearing from you....and you saved my day... again ;)
Thanks a ton and have a nice dayAndy
Hello,
No worries. If you have any issues with the implementation of the above mentioned behavior, please do not hesitate to ask, I will be glad to assist you further on that matter.