Posted 19 years ago
by shark92651
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);
...