|
using System;
using System.Collections.Generic;
using System.Text;
using Fireball.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Drawing;
namespace FireEdit.Themes
{
class FireEditLineMarginRender : LineMarginRender
{
private LinearGradientBrush _brush = null;
public override System.Drawing.Rectangle Bounds
{
get
{
return base.Bounds;
}
set
{
if (!this.Bounds.Equals(value))
{
_brush = new LinearGradientBrush(value,
SystemColors.Control, SystemColors.ControlLightLight,
LinearGradientMode.Horizontal);
}
base.Bounds = value;
}
}
public override void Render(Graphics gfx)
{
gfx.FillRectangle(_brush, this.Bounds);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.