Posted 19 years ago
by shark92651
![Avatar](https://secure.gravatar.com/avatar/99cb8587bb1fd590d3656754f04cbbcc.jpg?s=64&d=identicon&r=g)
I'm sure I am just overlooking something obvious here but I want a very simple SpanIndicator that will draw a box around some text, fill the background color, and then draw the text. I cannot find a way to get a reference to the Font property of the SyntaxEditor.
Here is how I am getting the text (is this the best way?):
protected override void DrawMarks(Graphics g, Rectangle Bounds)
{
string text = this.Document.Text.Substring(this.Offset, this.Length);
...
Here is how I am getting the text (is this the best way?):
protected override void DrawMarks(Graphics g, Rectangle Bounds)
{
string text = this.Document.Text.Substring(this.Offset, this.Length);
...