ComponentFactory.Krypton.Toolkit.KryptonOffice2013Renderer.GradientItemColors.DrawItem C# (CSharp) Method

DrawItem() public method

public DrawItem ( Graphics g, Rectangle rect ) : void
g System.Drawing.Graphics
rect System.Drawing.Rectangle
return void
            public virtual void DrawItem(Graphics g, Rectangle rect)
            {
                // Cannot paint a zero sized area
                if ((rect.Width > 0) && (rect.Height > 0))
                {
                    // Draw the background of the entire item
                    DrawBack(g, rect);

                    // Draw the border of the entire item
                    DrawBorder(g, rect);
                }
            }
KryptonOffice2013Renderer.GradientItemColors