mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-14 16:02:50 +08:00
736 B
736 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 are 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;