internal SLLayout Clone() { var l = new SLLayout(); l.LayoutTarget = LayoutTarget; l.LeftMode = LeftMode; l.TopMode = TopMode; l.WidthMode = WidthMode; l.HeightMode = HeightMode; l.Left = Left; l.Top = Top; l.Width = Width; l.Height = Height; return(l); }
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(); } }