Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

FireEdit

, 4 Apr 2006 CPOL
FireEdit - a small code editor with plugins support
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

dotnetfireball
Web Developer
Italy Italy
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 4 Apr 2006
Article Copyright 2006 by dotnetfireball
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid