internal SLDataSeriesOptions Clone() { SLDataSeriesOptions dso = new SLDataSeriesOptions(this.ShapeProperties.listThemeColors); dso.ShapeProperties = this.ShapeProperties.Clone(); dso.InvertIfNegative = this.InvertIfNegative; dso.Marker = this.Marker.Clone(); dso.iExplosion = this.iExplosion; dso.bBubble3D = this.bBubble3D; dso.Smooth = this.Smooth; dso.vShape = this.vShape; return(dso); }
internal SLDataSeriesOptions Clone() { SLDataSeriesOptions dso = new SLDataSeriesOptions(this.ShapeProperties.listThemeColors); dso.ShapeProperties = this.ShapeProperties.Clone(); dso.InvertIfNegative = this.InvertIfNegative; dso.Marker = this.Marker.Clone(); dso.iExplosion = this.iExplosion; dso.bBubble3D = this.bBubble3D; dso.Smooth = this.Smooth; dso.vShape = this.vShape; return dso; }
/// <summary> /// Set the options for a given data series. /// </summary> /// <param name="DataSeriesIndex">The index of the data series. This is 1-based indexing, so it's 1 for the 1st data series, 2 for the 2nd data series and so on.</param> /// <param name="Options">The data series options.</param> public void SetDataSeriesOptions(int DataSeriesIndex, SLDataSeriesOptions Options) { int index = DataSeriesIndex - 1; // out of bounds if (index < 0 || index >= this.PlotArea.DataSeries.Count) return; this.PlotArea.DataSeries[index].Options = Options.Clone(); }
/// <summary> /// Get the options for a specific data series. /// </summary> /// <param name="DataSeriesIndex">The index of the data series. This is 1-based indexing, so it's 1 for the 1st data series, 2 for the 2nd data series and so on.</param> /// <returns>The data series options for the specific data series. If the index is out of bounds, a default is returned.</returns> public SLDataSeriesOptions GetDataSeriesOptions(int DataSeriesIndex) { SLDataSeriesOptions dso = new SLDataSeriesOptions(this.listThemeColors); int index = DataSeriesIndex - 1; // out of bounds if (index < 0 || index >= this.PlotArea.DataSeries.Count) { return dso; } else { dso = this.PlotArea.DataSeries[index].Options.Clone(); return dso; } }