ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupRadioButtonText.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;

            // Adjust the client rect so the text has enough room to be drawn
            drawRect.Height += _heightExtra;
            drawRect.Y -= (_heightExtra / 2);

            // Use renderer to draw the text content
            if (_memento != null)
            {
                context.Renderer.RenderStandardContent.DrawContent(context, drawRect,
                                                                   _contentProvider, _memento,
                                                                   VisualOrientation.Top,
                                                                   State, false, true);
            }
        }