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

DrawRibbonTabSelectedTopDraw2010() protected method

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

            using (AntiAlias aa = new AntiAlias(g))
            {
                // Draw shadow lines on the outside of the left and right edges
                g.DrawLine(_mediumShadowPen, rect.Left, rect.Bottom - 3, rect.Left, rect.Top + 2);
                g.DrawLine(_mediumShadowPen, rect.Right - 1, rect.Bottom - 3, rect.Right - 1, rect.Top + 2);
            }
        }
RenderStandard