Is there a sample DrawGlyph code...

SyntaxEditor for Windows Forms Forum

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


Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v21.1.0) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.