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

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

gets the table according to the name of the table
public GetTable ( string tableName ) : Table
tableName string
Результат AODL.Document.Content.Tables.Table
		public Table GetTable(string tableName)
		{
			IDocument doc = this.Document ;
			
			if (doc is SpreadsheetDocument )
			{
				foreach(Table table in ((SpreadsheetDocument)doc).TableCollection )
				{
					if (table.TableName ==tableName)
						return table;
				}
			}

			return  null;
		}