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);
}
}
}