internal SLChartOptions Clone() { var co = new SLChartOptions(SeriesLinesShapeProperties.listThemeColors); co.BarDirection = BarDirection; co.BarGrouping = BarGrouping; co.VaryColors = VaryColors; co.iGapWidth = iGapWidth; co.iGapDepth = iGapDepth; co.byOverlap = byOverlap; co.Shape = Shape; co.Grouping = Grouping; co.ShowMarker = ShowMarker; co.Smooth = Smooth; co.iFirstSliceAngle = iFirstSliceAngle; co.byHoleSize = byHoleSize; co.HasSplit = HasSplit; co.SplitType = SplitType; co.SplitPosition = SplitPosition; co.SecondPiePoints = new List <int>(); for (var i = 0; i < SecondPiePoints.Count; ++i) { co.SecondPiePoints.Add(SecondPiePoints[i]); } co.iSecondPieSize = iSecondPieSize; co.SeriesLinesShapeProperties = SeriesLinesShapeProperties.Clone(); co.ScatterStyle = ScatterStyle; co.bWireframe = bWireframe; co.RadarStyle = RadarStyle; co.Bubble3D = Bubble3D; co.iBubbleScale = iBubbleScale; co.ShowNegativeBubbles = ShowNegativeBubbles; co.SizeRepresents = SizeRepresents; co.HasDropLines = HasDropLines; co.DropLines = DropLines.Clone(); co.HasHighLowLines = HasHighLowLines; co.HighLowLines = HighLowLines.Clone(); co.HasUpDownBars = HasUpDownBars; co.UpDownBars = UpDownBars.Clone(); return(co); }
internal SLPlotArea(List <Color> ThemeColors, bool Date1904, bool IsStylish = false) { InternalChartType = SLInternalChartType.Bar; var NumberOfChartTypes = Enum.GetNames(typeof(SLDataSeriesChartType)).Length; UsedChartTypes = new bool[NumberOfChartTypes]; UsedChartOptions = new SLChartOptions[NumberOfChartTypes]; for (var i = 0; i < NumberOfChartTypes; ++i) { UsedChartTypes[i] = false; UsedChartOptions[i] = new SLChartOptions(ThemeColors); } DataSeries = new List <SLDataSeries>(); Layout = new SLLayout(); PrimaryTextAxis = new SLTextAxis(ThemeColors, Date1904, IsStylish); PrimaryValueAxis = new SLValueAxis(ThemeColors, IsStylish); DepthAxis = new SLSeriesAxis(ThemeColors, IsStylish); SecondaryTextAxis = new SLTextAxis(ThemeColors, Date1904, IsStylish); SecondaryValueAxis = new SLValueAxis(ThemeColors, IsStylish); HasPrimaryAxes = false; HasDepthAxis = false; HasSecondaryAxes = false; ShowDataTable = false; DataTable = new SLDataTable(ThemeColors, IsStylish); ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Fill.SetNoFill(); ShapeProperties.Outline.SetNoLine(); } }