mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-14 16:02:50 +08:00

* Adding social card infrastructure * Upgrades doc project to .NET 6 * Adds Playwright * Changes the console to a web project for Playwright * Adds social card template * Added blog content * Parallelized social image processing * Updating CI to use .NET 6 for docs build
735 B
735 B
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 is different built-in borders you can use for tables and panels.
Table borders
Example
To set a table border to SimpleHeavy
:
var table = new Table();
table.Border = TableBorder.SimpleHeavy;
Panel borders
Example
To set a panel border to Rounded
:
var panel = new Panel("Hello World");
panel.Border = BoxBorder.Rounded;