mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00
40 lines
736 B
Markdown
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
|
|
|
|

|
|
|
|
### Example
|
|
|
|
To set a table border to `SimpleHeavy`:
|
|
|
|
```csharp
|
|
var table = new Table();
|
|
table.Border = TableBorder.SimpleHeavy;
|
|
```
|
|
|
|
---
|
|
|
|
## Panel borders
|
|
|
|

|
|
|
|
### Example
|
|
|
|
To set a panel border to `Rounded`:
|
|
|
|
```csharp
|
|
var panel = new Panel("Hello World");
|
|
panel.Border = BoxBorder.Rounded;
|
|
```
|