ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupClusterSeparator.RenderBefore C# (CSharp) Method

RenderBefore() public method

Perform rendering before child elements are rendered.
public RenderBefore ( RenderContext context ) : void
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
return void
        public override void RenderBefore(RenderContext context)
        {
            Rectangle drawRect = ClientRectangle;

            if (_start)
                drawRect.X -= 4;

            drawRect.Width += 4;

            context.Renderer.RenderGlyph.DrawRibbonGroupSeparator(_ribbon.RibbonShape,
                                                                  context,
                                                                  drawRect,
                                                                  _ribbon.StateCommon.RibbonGeneral,
                                                                  State);
        }