Hi,
I would like to show a popup below caret position. For this I would need to get the actual position within the application. How can I do that?
Hi,
I would like to show a popup below caret position. For this I would need to get the actual position within the application. How can I do that?
I've already figured it out. In case someone else looks for this, here is my solution:
var rect = editor.ActiveView.TransformFromTextArea(editor.ActiveView.CurrentViewLine.GetCharacterBounds(editor.ActiveView.Selection.EndOffset).Rect);
Hello,
You can call also call the editor.ActiveView.GetCharacterBounds() method to get that.
Please log in to a validated account to post comments.