mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-29 20:05:48 +08:00
Add tree widget
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user