Smrf.NodeXL.ExcelTemplate.LegendControlBase.DrawExcelColumnName C# (CSharp) Method

DrawExcelColumnName() protected method

protected DrawExcelColumnName ( DrawingObjects oDrawingObjects, String sColumnName, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sColumnName String
iLeft System.Int32
iRight System.Int32
iTop System.Int32
return void
    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);
    }