Update border documentation

This commit is contained in:
Patrik Svensson 2020-09-09 14:27:40 +02:00
parent b46d0fa4f6
commit 1601ef24b3
5 changed files with 27 additions and 6 deletions

View File

@ -0,0 +1,19 @@
Title: Borders
Order: 2
---
There is different built-in borders you can use for tables and panels.
# Built-in borders
<img src="../assets/images/borders.png" style="max-width: 100%;">
# Usage
To create a table and set it's border to `SimpleHeavy` as seen in the
image above:
```csharp
var table = new Table();
table.Border = Border.SimpleHeavy;
```

View File

@ -1,5 +1,5 @@
Title: Styles
Order: 0
Order: 1
---
Note that what styles that can be used is defined by the system or your terminal software, and may not appear as they should.

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -46,12 +46,14 @@ This will render the following output:
## Borders
For a list of borders, see the [Borders](xref:borders) appendix section.
```csharp
// Sets the border kind
table.SetBorderKind(BorderKind.None);
table.SetBorderKind(BorderKind.Ascii);
table.SetBorderKind(BorderKind.Square);
table.SetBorderKind(BorderKind.Rounded);
// Sets the border
table.SetBorder(Border.None);
table.SetBorder(Border.Ascii);
table.SetBorder(Border.Square);
table.SetBorder(Border.Rounded);
```
## Expand / Collapse