Add AsciiCast demos for docs

This commit is contained in:
Phil Scott
2021-05-20 21:03:17 -04:00
committed by Patrik Svensson
parent 69fdae70c0
commit 46abadaccb
95 changed files with 7920 additions and 179 deletions

View File

@ -73,7 +73,7 @@ namespace Spectre.Console
throw new ArgumentNullException(nameof(console));
}
console.Write(new Text(Environment.NewLine, Style.Plain));
console.Write(Text.NewLine);
}
/// <summary>

View File

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
@ -19,6 +20,11 @@ namespace Spectre.Console
/// </summary>
public static Text Empty { get; } = new Text(string.Empty);
/// <summary>
/// Gets an instance of <see cref="Text"/> containing a new line.
/// </summary>
public static Text NewLine { get; } = new Text(Environment.NewLine, Style.Plain);
/// <summary>
/// Initializes a new instance of the <see cref="Text"/> class.
/// </summary>