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

DrawLinearContextMenuItem() private method

private DrawLinearContextMenuItem ( Graphics g, ToolStripItem item, LinearItemColors colors ) : void
g System.Drawing.Graphics
item System.Windows.Forms.ToolStripItem
colors LinearItemColors
return void
        private void DrawLinearContextMenuItem(Graphics g,
                                               ToolStripItem item,
                                               LinearItemColors 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
            DrawLinearGradientItem(g, backRect, colors);
        }