Is there a sample DrawGlyph code...

SyntaxEditor for Windows Forms Forum

Posted 20 years ago by shareeef
Avatar
to draw custom line indicator ? Also how do move the caret to particular line / column?

Thanks.

Comments (1)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
For drawing line indicators, you can create a class that inherits LineIndicator and override the DrawGlyph method.

To change caret location you set the start offset of the selection. Set editor.Document.CurrentView.Selection.StartOffset. Position objects have line/character specifications. You can convert between those and offsets with editor.Document.OffsetToPosition and editor.Document.PositionToOffset.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.