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

DrawRibbonTabContextSelectedBottomDraw() protected method

Internal rendering method.
protected DrawRibbonTabContextSelectedBottomDraw ( Rectangle rect, MementoRibbonTabContextSelected cache, Graphics g ) : void
rect System.Drawing.Rectangle
cache MementoRibbonTabContextSelected
g System.Drawing.Graphics
return void
        protected virtual void DrawRibbonTabContextSelectedBottomDraw(Rectangle rect,
                                                                      MementoRibbonTabContextSelected cache,
                                                                      Graphics g)
        {
            g.DrawLine(Pens.White, rect.Left + 2, rect.Bottom - 4, rect.Right - 3, rect.Bottom - 4);
            g.DrawLine(cache.l3, rect.Left + 2, rect.Bottom - 4, rect.Right - 3, rect.Bottom - 4);
            g.DrawLine(Pens.White, rect.Left + 2, rect.Bottom - 3, rect.Right - 3, rect.Bottom - 3);
            g.DrawLine(cache.l2, rect.Left + 2, rect.Bottom - 3, rect.Right - 3, rect.Bottom - 3);
            g.DrawLine(Pens.White, rect.Left + 3, rect.Bottom - 2, rect.Right - 4, rect.Bottom - 2);
            g.DrawLine(cache.l1, rect.Left + 3, rect.Bottom - 2, rect.Right - 4, rect.Bottom - 2);

            // Draw the inside left, right and then bottom borders
            g.DrawLine(cache.leftPen, rect.Left + 2, rect.Bottom - 5, rect.Left + 2, rect.Top + 2);
            g.DrawLine(cache.rightPen, rect.Right - 3, rect.Bottom - 3, rect.Right - 3, rect.Top + 2);
            g.DrawLine(Pens.White, rect.Left + 2, rect.Top + 1, rect.Left + 1, rect.Top);
            g.DrawLine(cache.bottomInnerPen, rect.Left + 2, rect.Top + 1, rect.Left + 1, rect.Top);
            g.DrawLine(Pens.White, rect.Right - 3, rect.Top + 1, rect.Right - 2, rect.Top);
            g.DrawLine(cache.bottomInnerPen, rect.Right - 3, rect.Top + 1, rect.Right - 2, rect.Top);
            g.DrawLine(Pens.White, rect.Left + 1, rect.Top + 1, rect.Left, rect.Top);
            g.DrawLine(cache.bottomOuterPen, rect.Left + 1, rect.Top + 1, rect.Left, rect.Top);
            g.DrawLine(Pens.White, rect.Right - 2, rect.Top + 1, rect.Right - 1, rect.Top);
            g.DrawLine(cache.bottomOuterPen, rect.Right - 2, rect.Top + 1, rect.Right - 1, rect.Top);
        }
RenderStandard