How do we get a Point from Text position?

SyntaxEditor for WPF Forum

Posted 13 years ago by Ravikumar
Version: 11.1.0542
I'm trying to bring up a popup on the syntax editor control, and i need bring it up next to some specific text. I already know the TextPosition of the text, so can anyone tell me how i can get a Point from TextPostition?

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Ravikumar,

This gets the bounds relative to the view:
var bounds = editor.ActiveView.TransformFromTextArea(editor.ActiveView.GetCharacterBounds(position));

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.