public void Print(PrintPageEventArgs e, Brush brush, Point moveAll)
{
if (Font == null)
{
throw new ArgumentNullException("Line.Font");
}
if (Font.Value == null)
{
throw new ArgumentNullException("Line.Font.Value");
}
var lines = Text.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
Size size;
for (int i = 0, y = (int)Y; i < lines.Length; i++, y += size.Height)
{
e.Graphics.DrawString(lines[i], Font.Value, brush, X + moveAll.X, y + moveAll.Y);
size = SSize.Round(e.Graphics.MeasureString(lines[i], Font.Value));
}
}