Borders

There are different built-in borders you can use for tables and panels.

Table borders

Examples of table borders

Example

To set a table border to SimpleHeavy:

var table = new Table();
table.Border = TableBorder.SimpleHeavy;

Panel borders

Examples of panel borders

Example

To set a panel border to Rounded:

var panel = new Panel("Hello World");
panel.Border = BoxBorder.Rounded;