|
|
|
|
|
|
|
|
/// </example>
|
|
|
/// </example>
|
|
|
public Table InsertTable(int coloumnCount, int rowCount)
|
|
|
public Table InsertTable(int coloumnCount, int rowCount)
|
|
|
{
|
|
|
{
|
|
|
|
|
|
if (rowCount < 1 || coloumnCount < 1)
|
|
|
|
|
|
throw new ArgumentOutOfRangeException("Row and Coloumn count must be greater than zero.");
|
|
|
|
|
|
|
|
|
Table t = base.InsertTable(coloumnCount, rowCount);
|
|
|
Table t = base.InsertTable(coloumnCount, rowCount);
|
|
|
t.mainPart = mainPart;
|
|
|
t.mainPart = mainPart;
|
|
|
return t;
|
|
|
return t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Table AddTable(int rowCount, int coloumnCount)
|
|
|
public Table AddTable(int rowCount, int coloumnCount)
|
|
|
{
|
|
|
{
|
|
|
|
|
|
if (rowCount < 1 || coloumnCount < 1)
|
|
|
|
|
|
throw new ArgumentOutOfRangeException("Row and Coloumn count must be greater than zero.");
|
|
|
|
|
|
|
|
|
return (new Table(this, HelperFunctions.CreateTable(rowCount, coloumnCount)));
|
|
|
return (new Table(this, HelperFunctions.CreateTable(rowCount, coloumnCount)));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// </example>
|
|
|
/// </example>
|
|
|
public Table InsertTable(int index, int coloumnCount, int rowCount)
|
|
|
public Table InsertTable(int index, int coloumnCount, int rowCount)
|
|
|
{
|
|
|
{
|
|
|
|
|
|
if (rowCount < 1 || coloumnCount < 1)
|
|
|
|
|
|
throw new ArgumentOutOfRangeException("Row and Coloumn count must be greater than zero.");
|
|
|
|
|
|
|
|
|
Table t = InsertTable(index, coloumnCount, rowCount);
|
|
|
Table t = InsertTable(index, coloumnCount, rowCount);
|
|
|
t.mainPart = mainPart;
|
|
|
t.mainPart = mainPart;
|
|
|
return t;
|
|
|
return t;
|