2021-09-23 19:08:03 -04:00

40 lines
736 B
Markdown

Title: Borders
Order: 2
Description: "*Spectre.Console* makes it easy to create tables and panels with a variety of different styles of borders."
Highlights:
- Rounded
- Square
- Heavy
- And more...
---
There are different built-in borders you can use for tables and panels.
## Table borders
![Examples of table borders](../assets/images/borders/table.png)
### Example
To set a table border to `SimpleHeavy`:
```csharp
var table = new Table();
table.Border = TableBorder.SimpleHeavy;
```
---
## Panel borders
![Examples of panel borders](../assets/images/borders/panel.png)
### Example
To set a panel border to `Rounded`:
```csharp
var panel = new Panel("Hello World");
panel.Border = BoxBorder.Rounded;
```