예제 #1
0
        private LegendPosition ToLegendPosition(CT_LegendPos ctLegendPos)
        {
            switch (ctLegendPos.val)
            {
            case ST_LegendPos.b: return(LegendPosition.BOTTOM);

            case ST_LegendPos.l: return(LegendPosition.LEFT);

            case ST_LegendPos.r: return(LegendPosition.RIGHT);

            case ST_LegendPos.t: return(LegendPosition.TOP);

            case ST_LegendPos.tr: return(LegendPosition.TOP_RIGHT);

            default:
                throw new ArgumentException();
            }
        }
예제 #2
0
        private LegendPosition ToLegendPosition(CT_LegendPos ctLegendPos)
        {
            switch (ctLegendPos.val)
            {
            case ST_LegendPos.b: return(LegendPosition.Bottom);

            case ST_LegendPos.l: return(LegendPosition.Left);

            case ST_LegendPos.r: return(LegendPosition.Right);

            case ST_LegendPos.t: return(LegendPosition.Top);

            case ST_LegendPos.tr: return(LegendPosition.TopRight);

            default:
                throw new ArgumentException();
            }
        }