ComponentFactory.Krypton.Toolkit.KryptonSparkleRenderer.DrawGradientContextMenuItem C# (CSharp) Method

DrawGradientContextMenuItem() private method

private DrawGradientContextMenuItem ( Graphics g, ToolStripItem item, GradientItemColors colors ) : void
g System.Drawing.Graphics
item System.Windows.Forms.ToolStripItem
colors GradientItemColors
return void
        private void DrawGradientContextMenuItem(Graphics g,
                                                 ToolStripItem item,
                                                 GradientItemColors colors)
        {
            // Do we need to draw with separator on the opposite edge?
            Rectangle backRect = new Rectangle(2, 0, item.Bounds.Width - 3, item.Bounds.Height);

            // Perform actual drawing into the background
            DrawGradientItem(g, backRect, colors);
        }