protected virtual void DrawSubstringFrame(Graphics g, float x, float y, float width, float height)
{
if (this.UseRoundedRectangle) {
using (GraphicsPath path = this.GetRoundedRect(x, y, width, height, 3.0f)) {
if (this.FillBrush != null)
g.FillPath(this.FillBrush, path);
if (this.FramePen != null)
g.DrawPath(this.FramePen, path);
}
} else {
if (this.FillBrush != null)
g.FillRectangle(this.FillBrush, x, y, width, height);
if (this.FramePen != null)
g.DrawRectangle(this.FramePen, x, y, width, height);
}
}