Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DocumentAdv document = new DocumentAdv();
- SectionAdv section = new SectionAdv();
- TableAdv table = new TableAdv();
- TableFormat tableFormat = new TableFormat();
- Borders borders = new Borders();
- Border left = new Border();
- left.Color = Colors.Black;
- left.LineStyle = LineStyle.Single;
- borders.Left = left;
- Border right = new Border();
- borders.Right = right;
- right.LineStyle = LineStyle.Single;
- right.Color = Colors.Black;
- borders.Right = right;
- Border top = new Border();
- top.LineStyle = LineStyle.Single;
- top.Color = Colors.Black;
- borders.Top = top;
- Border bottom = new Border();
- bottom.LineStyle = LineStyle.Single;
- bottom.Color = Colors.Black;
- borders.Bottom = bottom;
- Border diagonalUp = new Border();
- diagonalUp.LineStyle = LineStyle.Single;
- diagonalUp.Color = Colors.Black;
- borders.DiagonalUp = diagonalUp;
- Border diagonalDown = new Border();
- diagonalDown.LineStyle = LineStyle.Single;
- diagonalDown.Color = Colors.Black;
- borders.DiagonalDown = diagonalDown;
- Border horizontal = new Border();
- horizontal.LineStyle = LineStyle.Single;
- horizontal.Color = Colors.Black;
- borders.Horizontal = horizontal;
- Border vertical = new Border();
- vertical.LineStyle = LineStyle.Single;
- vertical.Color = Colors.Black;
- borders.Vertical = vertical;
- table.TableFormat = tableFormat;
- TableRowAdv row = new TableRowAdv();
- TableCellAdv cell = new TableCellAdv();
- ParagraphAdv paragraph = new ParagraphAdv();
- SpanAdv span = new SpanAdv();
- span.Text = "Hello World";
- paragraph.Inlines.Add(span);
- cell.Blocks.Add(paragraph);
- row.Cells.Add(cell);
- table.Rows.Add(row);
- section.Blocks.Add(table);
Advertisement
Add Comment
Please, Sign In to add comment