Esempio n. 1
0
        public void AddCell(decimal width = 1500, int span = 1)
        {
            TableCell tc = new TableCell(width, span);

            tc.AppendBorders();
            _TableRow.Append(tc._TableCell);
        }
 private void AddCell(DocumentFormat.OpenXml.Wordprocessing.TableRow tr, string text)
 {
     DocumentFormat.OpenXml.Wordprocessing.TableCell tc = new DocumentFormat.OpenXml.Wordprocessing.TableCell(
         new DocumentFormat.OpenXml.Wordprocessing.Paragraph(
             new DocumentFormat.OpenXml.Wordprocessing.Run(
                 new DocumentFormat.OpenXml.Wordprocessing.Text(text))));
     tr.Append(tc);
 }
Esempio n. 3
0
        public TableRow(uint height)
        {
            _TableRow = new _TableRow();
            _TableRowProperties _trp = new _TableRowProperties();

            _TableRowHeight _trh = new _TableRowHeight()
            {
                Val = height
            };

            _trp.Append(_trh);

            _TableRow.Append(_trp);
        }