Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2549
Drag and Drop within UltraTextEditor for selected text
posted

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

Parents
  • 71886
    Verified Answer
    Offline posted

    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.

Reply Children