private int GetNumOfLines(string multiPageString, int wrapWidth, Font fnt)
{
var sfFmt = new StringFormat(StringFormatFlags.LineLimit);
using(var g = Graphics.FromImage(New Bitmap(1, 1)))
{
var iHeight = g.MeasureString(multiPageString, fnt, wrapWidth, sfFmt).Height;
var iOneLineHeight = g.MeasureString("Z", fnt, wrapWidth, sfFmt).Height;
return (int)(iHeight / iOneLineHeight)
}
}