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