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

CreateFromCellRange() публичный Метод

create the chart from the cell range of the data table
public CreateFromCellRange ( string CellRange ) : void
CellRange string
Результат void
		public void CreateFromCellRange(string CellRange)
		{
			int index1               = CellRange.IndexOf (":",0);
			int length               = CellRange.Length ;
			string  startCell        = CellRange.Substring (0,index1);
			int index2               = index1+1;
			string  endCell          = CellRange.Substring(index2,length-index2);
			string  tableName        = TableData.table .TableName ;
			string  range            = tableName+"."+startCell+":"+tableName+"."+endCell;
			
			this.CellRange           = range;
			CellPos    StartCell     = GetCellPos(startCell,TableData.table );


			TableData.startcell      = StartCell;

			
			CellPos   EndCell        = GetCellPos(endCell,TableData.table );
			
			
			TableData.endcell        = EndCell;
			

			this.CellRange           = range;

			if (this.IsNewed)
				this.CreateSeries ();
		}

Usage Example

Пример #1
0
		public static Chart CreateChart(Table table,ChartTypes type,string CellRange)
		{
			Chart chart        = new Chart (table,"ch1");
			chart.ChartType    = type.ToString ();
			chart.CreateFromCellRange (CellRange);
			return chart;
		}
All Usage Examples Of AODL.Document.Content.Charts.Chart::CreateFromCellRange