Split
function Split(nRow: Number = 1, nCol: Number = 1): ApiTable | "null"
Description
Splits the cell into a given number of rows and columns.
Parameters
- nRow
Number
1 Count of rows into which the cell will be split.
- nCol
Number
1 Count of columns into which the cell will be split.
Returns
ApiTable | "null"
Try It
var oDocument = Api.GetDocument();
var oTableStyle = oDocument.CreateStyle("CustomTableStyle", "table");
oTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"));
var oTable = Api.CreateTable(3, 3);
oTable.SetWidth("percent", 100);
oTable.SetStyle(oTableStyle);
oDocument.Push(oTable);
var oCell = oTable.GetCell(0, 0);
oCell.Split(2, 2);