protected virtual void DrawRibbonTabHighlightRightDraw(Rectangle rect,
Color c1, Color c2,
Color c3, Color c4,
Color c5,
MementoRibbonTabHighlight cache,
Graphics g,
bool alternate)
{
g.FillRectangle(cache.topBorderBrush, rect.Right - 4, rect.Top - 1, 4, rect.Height + 2);
g.DrawLine(cache.innerVertPen, rect.Left + 1, rect.Bottom - 3, rect.Right - 4, rect.Bottom - 3);
g.DrawLine(cache.innerVertPen, rect.Left + 1, rect.Top + 2, rect.Right - 4, rect.Top + 2);
g.DrawLine(cache.innerHorzPen, rect.Right - 3, rect.Bottom - 3, rect.Right - 3, rect.Top + 2);
if (alternate)
{
g.DrawLine(cache.innerHorzPen, rect.Right - 2, rect.Bottom - 3, rect.Right - 2, rect.Top + 2);
g.DrawLine(cache.borderHorzPen, rect.Right - 1, rect.Bottom - 4, rect.Right - 1, rect.Top + 3);
}
else
{
g.DrawLine(cache.innerHorzPen, rect.Right - 2, rect.Bottom - 4, rect.Right - 2, rect.Top + 3);
g.DrawLine(cache.borderHorzPen, rect.Right - 1, rect.Bottom - 5, rect.Right - 1, rect.Top + 4);
}
g.FillRectangle(cache.borderVertBrush, rect.Left + 1, rect.Bottom - 2, rect.Width - 3, 1);
g.FillRectangle(cache.borderVertBrush, rect.Left + 1, rect.Top + 1, rect.Width - 3, 1);
g.FillRectangle(cache.outsideVertBrush, rect.Left + 1, rect.Bottom - 1, rect.Width - 4, 1);
g.FillRectangle(cache.outsideVertBrush, rect.Left + 1, rect.Bottom, rect.Width - 4, 1);
g.FillRectangle(cache.outsideVertBrush, rect.Left + 1, rect.Top, rect.Width - 4, 1);
g.FillRectangle(cache.outsideVertBrush, rect.Left + 1, rect.Top - 1, rect.Width - 4, 1);
}