internal SLDataTable Clone() { var dt = new SLDataTable(ShapeProperties.listThemeColors); dt.ShapeProperties = ShapeProperties.Clone(); dt.ShowHorizontalBorder = ShowHorizontalBorder; dt.ShowVerticalBorder = ShowVerticalBorder; dt.ShowOutlineBorder = ShowOutlineBorder; dt.ShowLegendKeys = ShowLegendKeys; if (Font != null) { dt.Font = Font.Clone(); } return(dt); }
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(); } }