private DrawGradientContextMenuItem ( |
||
g | ||
item | ||
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);
}