AODL.Document.Content.Charts.ChartBuilderHelper.FirstLineLabels C# (CSharp) Method

FirstLineLabels() private method

private FirstLineLabels ( ) : void
return void
		private void FirstLineLabels()
		{
			RowHeader   rowHeader = new RowHeader (table);
			Row         row       = new Row (table);
			Cell        cell      = CreateNullStringCell(table);
			row.Cells .Add (cell);
			
			for(int i=startColumnIndex; i<=endColumnIndex;i++)
			{
				Cell cellTemp = m_tableData.table .Rows [startRowIndex-1].Cells[i-1];
				int  cellRepeated =0;
				string cellRepeating = cellTemp.ColumnRepeating ;
				
				if (cellRepeating!=null)
					cellRepeated = Int32.Parse (cellTemp.ColumnRepeating);
				
				if (cellRepeated >1)
				{
					for(int j=0; j<cellRepeated-1; j++)
					{
						row.Cells .Add (cellTemp);
						i++;
					}
				}
	
				row.Cells .Add (cellTemp);
	
	
			}
			
			rowHeader.RowCollection .Add (row);
			table.RowHeader = rowHeader;
	
			for(int j=startRowIndex;j<=endRowIndex; j++)
			{
				Row  tempRow     = new Row (table);
				tempRow.Cells .Add (CreateRowSerialCell(table,j+1));
				
				for(int k=startColumnIndex;k<endColumnIndex; k++)
				{
					Cell cellTemp = m_tableData.table .Rows [j].Cells[k];
					int  cellRepeated =0;
					string cellRepeating = cellTemp.ColumnRepeating;
	
					if (cellRepeating!=null)
						cellRepeated=Int32.Parse (cellTemp.ColumnRepeating);
	
					if (cellRepeated >1)
					{
						for(int m=0; m<cellRepeated-1; m++)
						{
							row.Cells .Add (cellTemp);
							j++;
						}
					}
	
					tempRow.Cells .Add (cellTemp);
	
				}
	
				table.Rows .Add (tempRow);
	
			}
		}