BaconFeedback.PrintHandler.PrintHead C# (CSharp) Method

PrintHead() private method

private PrintHead ( System.Drawing.Printing.PrintPageEventArgs e, string head, int &yOffset ) : void
e System.Drawing.Printing.PrintPageEventArgs
head string
yOffset int
return void
        private void PrintHead(PrintPageEventArgs e, string head, ref int yOffset)
        {
            e.Graphics.DrawString(head, _fontHeader, Brushes.Black,
                new Rectangle(e.MarginBounds.X, yOffset, e.MarginBounds.Width, e.MarginBounds.Height));

            yOffset += (int) e.Graphics.MeasureString(head, _fontHeader, e.MarginBounds.Width).Height;
        }