ARCed.Scintilla.DropMarker.Paint C# (CSharp) Method

Paint() protected method

protected Paint ( Graphics g ) : void
g System.Drawing.Graphics
return void
        protected internal override void Paint(Graphics g)
        {
            base.Paint(g);

            if (IsDisposed)
                return;

            int x = NativeScintilla.PointXFromPosition(Start);
            int y = NativeScintilla.PointYFromPosition(Start) + NativeScintilla.TextHeight(0) - 2;

            //	Draw a red Triangle with a dark red border at the marker position
            g.FillPolygon(Brushes.Red, new[] { new Point(x - 2, y + 4), new Point(x, y), new Point(x + 2, y + 4) });
            g.DrawPolygon(Pens.DarkRed, new[] { new Point(x - 2, y + 4), new Point(x, y), new Point(x + 2, y + 4) });
        }