AODL.Document.Content.Charts.Chart.CreateSingleSeries C# (CSharp) Метод

CreateSingleSeries() приватный Метод

create a single series
private CreateSingleSeries ( int rowStartIndex, int rowEndINdex, int colStartIndex, int colEndIndex ) : void
rowStartIndex int the start row index
rowEndINdex int the end row index
colStartIndex int the start col index
colEndIndex int the end col index
Результат void
		private void CreateSingleSeries(int rowStartIndex,int rowEndINdex,int colStartIndex,int colEndIndex)
		{
			for(int i=rowStartIndex; i<= rowEndINdex; i++)
			{
				string styleRowname= "ch1"+i.ToString ();
				ChartSeries series = new ChartSeries (this,styleRowname);
				
				if (this.ChartType =="Circle")
				{
					for(int j=colStartIndex; j<=colEndIndex; j++)
					{
						string styleColname = "ch2"+j.ToString ();
						ChartDataPoint dataPoint = new ChartDataPoint (this,styleColname);
						series.DataPointCollection .Add (dataPoint);
					}
				}
				else
				{
					string  pointStylename = "ch3"+i.ToString ();
					ChartDataPoint dataPoint= new ChartDataPoint (this,pointStylename);
					int Repeated = colEndIndex-colStartIndex+1;
					dataPoint.Repeated =Repeated.ToString ();
					series.DataPointCollection .Add (dataPoint);
				}

				this.ChartPlotArea .SeriesCollection .Add (series);
			}


		}