Esempio n. 1
0
 /// <inheritdoc/>
 public override string GetPart(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."),
     });
Esempio n. 2
0
 /// <inheritdoc/>
 public override string GetPart(BoxBorderPart part)
 {
     return(" ");
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the string representation of the specified border part.
 /// </summary>
 /// <param name="part">The part to get the character representation for.</param>
 /// <returns>A character representation of the specified border part.</returns>
 public abstract string GetPart(BoxBorderPart part);