ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupRichTextBox.Render C# (CSharp) Method

Render() public method

Perform a render of the elements.
public Render ( RenderContext context ) : void
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
return void
        public override void Render(RenderContext context)
        {
            Debug.Assert(context != null);

            // If we do not have a richtextbox
            if (_ribbonRichTextBox.RichTextBox == null)
            {
                // And we are in design time
                if (_ribbon.InDesignMode)
                {
                    // Draw rectangle is 1 pixel less per edge
                    Rectangle drawRect = ClientRectangle;
                    drawRect.Inflate(-1, -1);
                    drawRect.Height--;

                    // Draw an indication of where the richtextbox will be
                    context.Graphics.FillRectangle(Brushes.Goldenrod, drawRect);
                    context.Graphics.DrawRectangle(Pens.Gold, drawRect);
                }
            }
        }