internal void MergeOptions(SLPieChartOptions pco)
        {
            this.VaryColors      = pco.VaryColors;
            this.FirstSliceAngle = pco.FirstSliceAngle;
            this.HoleSize        = pco.HoleSize;
            this.GapWidth        = pco.GapWidth;
            this.HasSplit        = pco.HasSplit;
            this.SplitType       = pco.SplitType;
            this.SplitPosition   = pco.SplitPosition;

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

            this.SecondPieSize = pco.SecondPieSize;

            this.SeriesLinesShapeProperties = pco.ShapeProperties.Clone();
        }
Beispiel #2
0
        internal SLPieChartOptions Clone()
        {
            SLPieChartOptions pco = new SLPieChartOptions(this.ShapeProperties.listThemeColors);

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

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

            pco.iSecondPieSize = this.iSecondPieSize;

            pco.ShapeProperties = this.ShapeProperties.Clone();

            return(pco);
        }