コード例 #1
0
        internal SLDataPointOptions Clone()
        {
            SLDataPointOptions dpo = new SLDataPointOptions(this.ShapeProperties.listThemeColors, this.ShapeProperties.ThrowExceptionsIfAny);

            dpo.ShapeProperties  = this.ShapeProperties.Clone();
            dpo.InvertIfNegative = this.InvertIfNegative;
            dpo.Marker           = this.Marker.Clone();
            dpo.iExplosion       = this.iExplosion;
            dpo.bBubble3D        = this.bBubble3D;

            return(dpo);
        }
コード例 #2
0
        internal SLDataPointOptions Clone()
        {
            SLDataPointOptions dpo = new SLDataPointOptions(this.ShapeProperties.listThemeColors);
            dpo.ShapeProperties = this.ShapeProperties.Clone();
            dpo.InvertIfNegative = this.InvertIfNegative;
            dpo.Marker = this.Marker.Clone();
            dpo.iExplosion = this.iExplosion;
            dpo.bBubble3D = this.bBubble3D;

            return dpo;
        }
コード例 #3
0
ファイル: SLChart.cs プロジェクト: mousetwentytwo/test
        /// <summary>
        /// Set data point options to a specific data point in 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>
        /// <param name="DataPointIndex">The index of the data point. This is 1-based indexing, so it's 1 for the 1st data point, 2 for the 2nd data point and so on.</param>
        /// <param name="Options">Data point customization options.</param>
        public void SetDataPointOptions(int DataSeriesIndex, int DataPointIndex, SLDataPointOptions Options)
        {
            // why not just return if outside of range? Because I assume you counted wrongly.
            if (DataSeriesIndex < 1) DataSeriesIndex = 1;
            if (DataSeriesIndex > this.PlotArea.DataSeries.Count) DataSeriesIndex = this.PlotArea.DataSeries.Count;
            // to get it to 0-index
            --DataSeriesIndex;

            --DataPointIndex;
            if (DataPointIndex < 0) DataPointIndex = 0;
            this.PlotArea.DataSeries[DataSeriesIndex].DataPointOptionsList[DataPointIndex] = Options.Clone();
        }