Table size

Oct 27, 2016 at 6:02 AM
Hi, it is possible to modify the size of the table, as in the picture example?
Oct 27, 2016 at 10:24 PM
Try using Table.SetWidths();
            DocX doc = DocX.Create(@"C:\users\edwar\documents\test.docx");
            Table tab = doc.AddTable(5, 3);
            tab.Alignment = Alignment.left;
            tab.Design = TableDesign.MediumGrid1;
            var widths = new float[] { 100f, 200f, 100f };
The width of the table will be the sum total of the widths you give for each column.