protected virtual void DrawRibbonTabFocusRight2010(Rectangle rect,
Color c3, Color c4,
MementoRibbonTabTracking2010 cache)
{
GraphicsPath borderPath = new GraphicsPath();
GraphicsPath outsidePath = new GraphicsPath();
GraphicsPath insidePath = new GraphicsPath();
// Create path for a border pen
borderPath.AddLine(rect.Left, rect.Top - 1, rect.Left + 1, rect.Top);
borderPath.AddLine(rect.Left + 1, rect.Top, rect.Right - 2.75f, rect.Top);
borderPath.AddLine(rect.Right - 2.75f, rect.Top, rect.Right - 1, rect.Top + 1);
borderPath.AddLine(rect.Right - 1, rect.Top + 2, rect.Right - 1, rect.Bottom - 3.5f);
borderPath.AddLine(rect.Right - 1, rect.Bottom - 3.5f, rect.Right - 2.75f, rect.Bottom - 2);
borderPath.AddLine(rect.Right - 2.75f, rect.Bottom - 2, rect.Left + 1, rect.Bottom - 2);
borderPath.AddLine(rect.Left + 1, rect.Bottom - 2, rect.Left, rect.Bottom - 1);
// Create path for a inside fill
outsidePath.AddLine(rect.Left, rect.Top, rect.Right - 2.75f, rect.Top);
outsidePath.AddLine(rect.Right - 2.75f, rect.Top, rect.Right - 1, rect.Top + 1);
outsidePath.AddLine(rect.Right - 1, rect.Top + 1, rect.Right - 1, rect.Bottom - 2.5f);
outsidePath.AddLine(rect.Right - 1, rect.Bottom - 2.5f, rect.Right - 2.75f, rect.Bottom - 1);
outsidePath.AddLine(rect.Right - 2.75f, rect.Bottom - 1, rect.Left, rect.Bottom - 1);
// Reduce rectangle to the inside fill area
rect.Y += 2;
rect.Width -= 2;
rect.Height -= 3;
// Create path for a curved inside fill area
insidePath.AddLine(rect.Left, rect.Top - 2, rect.Left + 1, rect.Top);
insidePath.AddLine(rect.Left + 1, rect.Top, rect.Right - 1, rect.Top);
insidePath.AddLine(rect.Right - 1, rect.Top, rect.Right, rect.Top + 1);
insidePath.AddLine(rect.Right, rect.Top + 1, rect.Right, rect.Bottom - 4);
insidePath.AddLine(rect.Right, rect.Bottom - 4, rect.Right - 2, rect.Bottom - 2);
insidePath.AddLine(rect.Right - 2, rect.Bottom - 2, rect.Left + 1, rect.Bottom - 2);
insidePath.AddLine(rect.Left + 1, rect.Bottom - 2, rect.Left, rect.Bottom - 1);
cache.borderPath = borderPath;
cache.outsidePath = outsidePath;
cache.insidePath = insidePath;
cache.insideBrush = new LinearGradientBrush(new RectangleF(rect.X - 2, rect.Y - 1, rect.Width + 2, rect.Height + 2), c4, c3, 0f);
cache.insideBrush.Blend = _linear50Blend;
}