|
|
|
|
|
|
|
|
);
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
internal static XElement CreateTable(int rowCount, int columnCount) |
|
|
|
|
|
{ |
|
|
|
|
|
int[] columnWidths = new int[columnCount]; |
|
|
|
|
|
for (int i = 0; i < columnCount; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
columnWidths[i] = 2310; |
|
|
|
|
|
} |
|
|
|
|
|
return CreateTable(rowCount, columnWidths); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal static XElement CreateTable(int rowCount, int columnCount)
|
|
|
|
|
|
{
|
|
|
|
|
|
int[] columnWidths = new int[columnCount];
|
|
|
|
|
|
for (int i = 0; i < columnCount; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
columnWidths[i] = 2310;
|
|
|
|
|
|
}
|
|
|
|
|
|
return CreateTable(rowCount, columnWidths);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
internal static XElement CreateTable(int rowCount, int[] columnWidths)
|
|
|
internal static XElement CreateTable(int rowCount, int[] columnWidths)
|
|
|
{
|
|
|
{
|
|
|
XElement newTable =
|
|
|
XElement newTable =
|
|
|
|
|
|
|
|
|
);
|
|
|
);
|
|
|
|
|
|
|
|
|
XElement tableGrid = new XElement(XName.Get("tblGrid", DocX.w.NamespaceName));
|
|
|
XElement tableGrid = new XElement(XName.Get("tblGrid", DocX.w.NamespaceName));
|
|
|
for (int i = 0; i < columnWidths.Length; i++) |
|
|
|
|
|
|
|
|
for (int i = 0; i < columnWidths.Length; i++)
|
|
|
tableGrid.Add(new XElement(XName.Get("gridCol", DocX.w.NamespaceName), new XAttribute(XName.Get("w", DocX.w.NamespaceName), XmlConvert.ToString(columnWidths[i]))));
|
|
|
tableGrid.Add(new XElement(XName.Get("gridCol", DocX.w.NamespaceName), new XAttribute(XName.Get("w", DocX.w.NamespaceName), XmlConvert.ToString(columnWidths[i]))));
|
|
|
|
|
|
|
|
|
newTable.Add(tableGrid);
|
|
|
newTable.Add(tableGrid);
|