コード例 #1
0
        internal void MergeOptions(SLPieChartOptions pco)
        {
            VaryColors      = pco.VaryColors;
            FirstSliceAngle = pco.FirstSliceAngle;
            HoleSize        = pco.HoleSize;
            GapWidth        = pco.GapWidth;
            HasSplit        = pco.HasSplit;
            SplitType       = pco.SplitType;
            SplitPosition   = pco.SplitPosition;

            SecondPiePoints.Clear();
            foreach (var i in pco.SecondPiePoints)
            {
                SecondPiePoints.Add(i);
            }
            SecondPiePoints.Sort();

            SecondPieSize = pco.SecondPieSize;

            SeriesLinesShapeProperties = pco.ShapeProperties.Clone();
        }
コード例 #2
0
        internal SLPieChartOptions Clone()
        {
            var pco = new SLPieChartOptions(ShapeProperties.listThemeColors);

            pco.VaryColors       = VaryColors;
            pco.iFirstSliceAngle = iFirstSliceAngle;
            pco.byHoleSize       = byHoleSize;
            pco.iGapWidth        = iGapWidth;
            pco.HasSplit         = HasSplit;
            pco.SplitType        = SplitType;
            pco.SplitPosition    = SplitPosition;

            pco.SecondPiePoints = new List <int>();
            for (var i = 0; i < SecondPiePoints.Count; ++i)
            {
                pco.SecondPiePoints.Add(SecondPiePoints[i]);
            }

            pco.iSecondPieSize = iSecondPieSize;

            pco.ShapeProperties = ShapeProperties.Clone();

            return(pco);
        }