protected virtual void DrawRibbonTabSelectedRight2010(Rectangle rect,
Color c2, Color c3, Color c5,
MementoRibbonTabSelected2010 cache)
{
GraphicsPath outsidePath = new GraphicsPath();
GraphicsPath insidePath = new GraphicsPath();
// Create path for a curved dark border around the tab
outsidePath.AddLine(rect.Left + 1, rect.Bottom - 1, rect.Left + 1, rect.Bottom - 2);
outsidePath.AddLine(rect.Left + 2, rect.Bottom - 2, rect.Right - 2, rect.Bottom - 2);
outsidePath.AddLine(rect.Right - 2, rect.Bottom - 2, rect.Right - 1, rect.Bottom - 4);
outsidePath.AddLine(rect.Right - 1, rect.Bottom - 4, rect.Right - 1, rect.Top + 3);
outsidePath.AddLine(rect.Right - 1, rect.Top + 3, rect.Right - 2, rect.Top + 1);
outsidePath.AddLine(rect.Right - 2, rect.Top + 1, rect.Left + 1, rect.Top + 1);
outsidePath.AddLine(rect.Left + 1, rect.Top + 1, rect.Left + 1, rect.Top);
RectangleF centerRectF = new RectangleF(rect.Left - 1, rect.Top - 1, rect.Width + 2, rect.Height + 2);
cache.centerBrush = new LinearGradientBrush(centerRectF, c2, c3, 180f);
cache.centerBrush.Blend = _ribbonTabSelected1Blend;
cache.outsidePath = outsidePath;
// Reduce rectangle to the inside fill area
rect.Y += 2;
rect.Width -= 1;
rect.Height -= 3;
// Create path for a curved inside border
insidePath.AddLine(rect.Left + 1, rect.Bottom - 1, rect.Left + 1, rect.Bottom - 2);
insidePath.AddLine(rect.Left + 2, rect.Bottom - 2, rect.Right - 3, rect.Bottom - 2);
insidePath.AddLine(rect.Right - 3, rect.Bottom - 2, rect.Right - 1, rect.Bottom - 4);
insidePath.AddLine(rect.Right - 1, rect.Bottom - 4, rect.Right - 1, rect.Top + 3);
insidePath.AddLine(rect.Right - 1, rect.Top + 3, rect.Right - 2, rect.Top + 1);
insidePath.AddLine(rect.Right - 2, rect.Top + 1, rect.Left + 1, rect.Top + 1);
insidePath.AddLine(rect.Left + 1, rect.Top + 1, rect.Left + 1, rect.Top);
RectangleF insideRectF = new RectangleF(rect.Left - 1, rect.Top - 1, rect.Width + 2, rect.Height + 2);
cache.insideBrush = new LinearGradientBrush(insideRectF, Color.FromArgb(32, c5), Color.Transparent, 180f);
cache.insideBrush.Blend = _ribbonTabSelected2Blend;
cache.insidePath = insidePath;
}