public void Render(Graphics g, Rectangle r) { probeRenderer.Render(g, r); if (!probeRenderer.HasRenderContent()) { rectF.Location = new PointF(r.Left, r.Top); rectF.Size = new SizeF(r.Width, r.Height); g.DrawString(text, genericSansFont, textColour, rectF, typeFormat); } }