ComponentFactory.Krypton.Toolkit.RenderStandard.DrawRibbonTabSelectedBottomDraw2007 C# (CSharp) Method

DrawRibbonTabSelectedBottomDraw2007() protected method

Internal rendering method.
protected DrawRibbonTabSelectedBottomDraw2007 ( Rectangle rect, MementoRibbonTabSelected2007 cache, Graphics g ) : void
rect System.Drawing.Rectangle
cache MementoRibbonTabSelected2007
g System.Drawing.Graphics
return void
        protected virtual void DrawRibbonTabSelectedBottomDraw2007(Rectangle rect,
                                                                   MementoRibbonTabSelected2007 cache,
                                                                   Graphics g)
        {
            // Fill in the bottom two lines that the 'FillPath' above missed
            g.DrawLine(cache.insidePen, rect.Left + 1, rect.Top, rect.Right - 2, rect.Top);
            g.DrawLine(cache.insidePen, rect.Left + 2, rect.Top + 1, rect.Right - 3, rect.Top + 1);
            g.DrawLine(cache.centerPen, rect.Left + 3, rect.Top, rect.Right - 4, rect.Top);

            using (AntiAlias aa = new AntiAlias(g))
            {
                // Draw a line on the inside of the left and right border edges
                g.DrawLine(cache.middlePen, rect.Left + 0.5f, rect.Top, rect.Left + 2, rect.Top + 2);
                g.DrawLine(cache.middlePen, rect.Left + 2, rect.Top + 2, rect.Left + 2, rect.Bottom - 3);
                g.DrawLine(cache.middlePen, rect.Right - 1.5f, rect.Top, rect.Right - 3, rect.Top + 2);
                g.DrawLine(cache.middlePen, rect.Right - 3, rect.Top + 2, rect.Right - 3, rect.Bottom - 3);

                // Draw shadow lines on the outside of the left and right edges
                g.DrawLine(_paleShadowPen, rect.Left - 1, rect.Top + 1, rect.Left - 1, rect.Bottom - 9);
                g.DrawLine(_lightShadowPen, rect.Left, rect.Top + 2, rect.Left, rect.Bottom - 6);
                g.DrawLine(_darkShadowPen, rect.Right - 1, rect.Top + 2, rect.Right - 1, rect.Bottom - 4);
                g.DrawLine(_mediumShadowPen, rect.Right, rect.Top + 1, rect.Right, rect.Bottom - 8);
            }
        }
RenderStandard