Add tree widget

This commit is contained in:
Matt Constable
2021-01-02 09:01:16 +00:00
committed by GitHub
parent 179e243214
commit b136d0299b
16 changed files with 467 additions and 16 deletions

View File

@@ -52,6 +52,13 @@ namespace Spectre.Console.Rendering
/// </summary>
public static Segment Empty { get; } = new Segment(string.Empty, Style.Plain, false, false);
/// <summary>
/// Creates padding segment.
/// </summary>
/// <param name="size">Number of whitespace characters.</param>
/// <returns>Segment for specified padding size.</returns>
public static Segment Padding(int size) => new(new string(' ', size));
/// <summary>
/// Initializes a new instance of the <see cref="Segment"/> class.
/// </summary>