protected int CalcGdiPlusPreferredHeight(Graphics g)
{
//
int width = this.Width - this.Padding.Right;
if (this.Image != null)
{
width -= 16 + this.Padding.Left;
}
//
SizeF size = g.MeasureString(this.Text, this.Font, width, this.StringFormat);
//
int height = (int) Math.Ceiling(size.Height);
return height;
}