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

DrawRibbonTabHighlightBottomDraw() protected method

Internal rendering method.
protected DrawRibbonTabHighlightBottomDraw ( Rectangle rect, Color c1, Color c2, Color c3, Color c4, Color c5, MementoRibbonTabHighlight cache, Graphics g, bool alternate ) : void
rect System.Drawing.Rectangle
c1 Color
c2 Color
c3 Color
c4 Color
c5 Color
cache MementoRibbonTabHighlight
g System.Drawing.Graphics
alternate bool
return void
        protected virtual void DrawRibbonTabHighlightBottomDraw(Rectangle rect,
                                                        Color c1, Color c2,
                                                        Color c3, Color c4,
                                                        Color c5,
                                                        MementoRibbonTabHighlight cache,
                                                        Graphics g,
                                                        bool alternate)
        {
            g.FillRectangle(cache.topBorderBrush, rect.Left - 1, rect.Bottom - 3, rect.Width + 2, 4);
            g.DrawLine(cache.innerVertPen, rect.Left + 2, rect.Top + 1, rect.Left + 2, rect.Bottom - 4);
            g.DrawLine(cache.innerVertPen, rect.Right - 3, rect.Top + 1, rect.Right - 3, rect.Bottom - 4);
            g.DrawLine(cache.innerHorzPen, rect.Left + 2, rect.Bottom - 3, rect.Right - 3, rect.Bottom - 3);

            if (alternate)
            {
                g.DrawLine(cache.innerHorzPen, rect.Left + 2, rect.Bottom - 2, rect.Right - 3, rect.Bottom - 2);
                g.DrawLine(cache.borderHorzPen, rect.Left + 3, rect.Bottom - 1, rect.Right - 4, rect.Bottom - 1);
            }
            else
            {
                g.DrawLine(cache.innerHorzPen, rect.Left + 3, rect.Bottom - 2, rect.Right - 4, rect.Bottom - 2);
                g.DrawLine(cache.borderHorzPen, rect.Left + 4, rect.Bottom - 1, rect.Right - 5, rect.Bottom - 1);
            }

            g.FillRectangle(cache.borderVertBrush, rect.Left + 1, rect.Top + 1, 1, rect.Height - 3);
            g.FillRectangle(cache.borderVertBrush, rect.Right - 2, rect.Top + 1, 1, rect.Height - 3);
            g.FillRectangle(cache.outsideVertBrush, rect.Left, rect.Top + 1, 1, rect.Height - 4);
            g.FillRectangle(cache.outsideVertBrush, rect.Left - 1, rect.Top + 1, 1, rect.Height - 4);
            g.FillRectangle(cache.outsideVertBrush, rect.Right - 1, rect.Top + 1, 1, rect.Height - 4);
            g.FillRectangle(cache.outsideVertBrush, rect.Right, rect.Top + 1, 1, rect.Height - 4);
        }
RenderStandard