ARCed.Scintilla.PrintDocument.DrawFooter C# (CSharp) Method

DrawFooter() private method

private DrawFooter ( Graphics oGraphics, Rectangle oBounds, PageInformation oFooter ) : Rectangle
oGraphics System.Drawing.Graphics
oBounds System.Drawing.Rectangle
oFooter PageInformation
return System.Drawing.Rectangle
        private Rectangle DrawFooter(Graphics oGraphics, Rectangle oBounds, PageInformation oFooter)
        {
            if (oFooter.Display)
            {
                int iHeight = oFooter.Height;
                var oFooterBounds = new Rectangle(oBounds.Left, oBounds.Bottom - iHeight, oBounds.Width, iHeight);

                oFooter.Draw(oGraphics, oFooterBounds, this.DocumentName, this._iCurrentPage);

                return new Rectangle(
                    oBounds.Left, oBounds.Top,
                    oBounds.Width, oBounds.Height - oFooterBounds.Height - oFooter.Margin
                    );
            }
            else
            {
                return oBounds;
            }
        }