diff --git a/docs/input/appendix/borders.md b/docs/input/appendix/borders.md new file mode 100644 index 0000000..f2308bf --- /dev/null +++ b/docs/input/appendix/borders.md @@ -0,0 +1,19 @@ +Title: Borders +Order: 2 +--- + +There is different built-in borders you can use for tables and panels. + +# Built-in borders + + + +# 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; +``` \ No newline at end of file diff --git a/docs/input/appendix/styles.md b/docs/input/appendix/styles.md index 2e8ce76..913d2e5 100644 --- a/docs/input/appendix/styles.md +++ b/docs/input/appendix/styles.md @@ -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. diff --git a/docs/input/assets/images/borders.png b/docs/input/assets/images/borders.png new file mode 100644 index 0000000..dc28d77 Binary files /dev/null and b/docs/input/assets/images/borders.png differ diff --git a/docs/input/assets/images/helloworld.png b/docs/input/assets/images/helloworld.png deleted file mode 100644 index 24a440c..0000000 Binary files a/docs/input/assets/images/helloworld.png and /dev/null differ diff --git a/docs/input/tables.md b/docs/input/tables.md index d0d7a3a..7aa3098 100644 --- a/docs/input/tables.md +++ b/docs/input/tables.md @@ -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