DrawExcelColumnName
(
DrawingObjects oDrawingObjects,
String sColumnName,
Int32 iLeft,
Int32 iRight,
ref Int32 iTop
)
{
Debug.Assert(oDrawingObjects != null);
Debug.Assert( !String.IsNullOrEmpty(sColumnName) );
iTop += oDrawingObjects.GetFontHeightMultiple(0.2F);
oDrawingObjects.Graphics.DrawString(sColumnName, oDrawingObjects.Font,
SystemBrushes.ControlText,
Rectangle.FromLTRB( iLeft, iTop, iRight,
(Int32)(iTop + oDrawingObjects.FontHeight) ),
oDrawingObjects.TrimmingStringFormat);
iTop += oDrawingObjects.GetFontHeightMultiple(1.05F);
}