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

Closes #85 * Split Border into BoxBorder and TableBorder * Change how different table parts are composed * Add markdown table border
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Spectre.Console.Rendering;
|
|
|
|
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Represents a border.
|
|
/// </summary>
|
|
public abstract partial class BoxBorder
|
|
{
|
|
/// <summary>
|
|
/// Gets an invisible border.
|
|
/// </summary>
|
|
public static BoxBorder None { get; } = new NoBoxBorder();
|
|
|
|
/// <summary>
|
|
/// Gets an ASCII border.
|
|
/// </summary>
|
|
public static BoxBorder Ascii { get; } = new AsciiBoxBorder();
|
|
|
|
/// <summary>
|
|
/// Gets a double border.
|
|
/// </summary>
|
|
[SuppressMessage("Naming", "CA1720:Identifier contains type name")]
|
|
public static BoxBorder Double { get; } = new DoubleBoxBorder();
|
|
|
|
/// <summary>
|
|
/// Gets a heavy border.
|
|
/// </summary>
|
|
public static BoxBorder Heavy { get; } = new HeavyBoxBorder();
|
|
|
|
/// <summary>
|
|
/// Gets a rounded border.
|
|
/// </summary>
|
|
public static BoxBorder Rounded { get; } = new RoundedBoxBorder();
|
|
|
|
/// <summary>
|
|
/// Gets a square border.
|
|
/// </summary>
|
|
public static BoxBorder Square { get; } = new SquareBoxBorder();
|
|
}
|
|
}
|