using System;
namespace Spectre.Console.Rendering
{
///
/// Represents a heavy border.
///
public sealed class HeavyBoxBorder : BoxBorder
{
///
public override BoxBorder? SafeBorder => BoxBorder.Square;
///
protected override string GetBorderPart(BoxBorderPart part)
{
return part switch
{
BoxBorderPart.TopLeft => "┏",
BoxBorderPart.Top => "━",
BoxBorderPart.TopRight => "┓",
BoxBorderPart.Left => "┃",
BoxBorderPart.Right => "┃",
BoxBorderPart.BottomLeft => "┗",
BoxBorderPart.Bottom => "━",
BoxBorderPart.BottomRight => "┛",
_ => throw new InvalidOperationException("Unknown border part."),
};
}
}
}