Smrf.NodeXL.ExcelTemplate.AutoFillResultsLegendControl.DrawAutoFilledEdgeResults C# (CSharp) Method

DrawAutoFilledEdgeResults() protected method

protected DrawAutoFilledEdgeResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
return System.Int32
    DrawAutoFilledEdgeResults
    (
        DrawingObjects oDrawingObjects,
        Rectangle oColumnRectangle
    )
    {
        Debug.Assert(oDrawingObjects != null);
        AssertValid();

        Int32 iTop = oColumnRectangle.Top;

        if (m_oAutoFillWorkbookResults.AutoFilledEdgeColumnCount > 0)
        {
            DrawColumnHeader(oDrawingObjects, EdgePropertyHeader,
                oColumnRectangle.Left, oColumnRectangle.Right, ref iTop);

            Int32 iResultsLeft = oColumnRectangle.Left;
            Int32 iResultsRight = oColumnRectangle.Right;

            AutoFillColorColumnResults oEdgeColorResults =
                m_oAutoFillWorkbookResults.EdgeColorResults;

            if (oEdgeColorResults.ColumnAutoFilled)
            {
                DrawColorColumnResults(oDrawingObjects, ColorCaption,
                    oEdgeColorResults, VertexShape.SolidSquare,
                    oColumnRectangle, iResultsLeft, iResultsRight, ref iTop);
            }

            AutoFillNumericRangeColumnResults oEdgeWidthResults =
                m_oAutoFillWorkbookResults.EdgeWidthResults;

            if (oEdgeWidthResults.ColumnAutoFilled)
            {
                DrawRampResults(oDrawingObjects,
                    oEdgeWidthResults.SourceColumnName, EdgeWidthCaption,
                    oEdgeWidthResults.SourceCalculationNumber1,
                    oEdgeWidthResults.SourceCalculationNumber2,
                    oEdgeWidthResults.DecimalPlaces, oColumnRectangle,
                    iResultsLeft, iResultsRight, ref iTop);
            }

            AutoFillNumericRangeColumnResults oEdgeAlphaResults =
                m_oAutoFillWorkbookResults.EdgeAlphaResults;

            if (oEdgeAlphaResults.ColumnAutoFilled)
            {
                DrawAutoFilledAlphaResults(oDrawingObjects,
                    oEdgeAlphaResults.SourceColumnName,
                    oEdgeAlphaResults.SourceCalculationNumber1,
                    oEdgeAlphaResults.SourceCalculationNumber2,
                    oEdgeAlphaResults.DecimalPlaces,
                    oEdgeAlphaResults.DestinationNumber1,
                    oEdgeAlphaResults.DestinationNumber2,
                    oColumnRectangle, iResultsLeft, iResultsRight, ref iTop);
            }
        }

        return (iTop);
    }