mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
New doc theme (#387)
This commit is contained in:
@ -4,11 +4,11 @@ Order: 2
|
||||
|
||||
There is different built-in borders you can use for tables and panels.
|
||||
|
||||
# Table borders
|
||||
## Table borders
|
||||
|
||||
<img src="../assets/images/borders/table.png" style="max-width: 100%;">
|
||||

|
||||
|
||||
## Example
|
||||
### Example
|
||||
|
||||
To set a table border to `SimpleHeavy`:
|
||||
|
||||
@ -19,15 +19,15 @@ table.Border = TableBorder.SimpleHeavy;
|
||||
|
||||
---
|
||||
|
||||
# Panel borders
|
||||
## Panel borders
|
||||
|
||||
<img src="../assets/images/borders/panel.png" style="max-width: 100%;">
|
||||

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