Graphics g = e.Graphics;
System.Drawing.Drawing2D.LinearGradientBrush lb = new System.Drawing.Drawing2D.LinearGradientBrush(this.DisplayRectangle, Color.Blue, Color.Pink, 45);
g.FillRectangle(lb, this.DisplayRectangle);
转载于:https://www.cnblogs.com/zhangtao/archive/2010/06/08/1754271.html