Add text overflow support

Closes #61
This commit is contained in:
Patrik Svensson
2020-09-03 14:34:13 +02:00
committed by Patrik Svensson
parent 88edfe68ec
commit 9f8ca6d648
8 changed files with 282 additions and 31 deletions

View File

@@ -7,7 +7,7 @@ namespace Spectre.Console
/// <summary>
/// A renderable piece of markup text.
/// </summary>
public sealed class Markup : Renderable, IAlignable
public sealed class Markup : Renderable, IAlignable, IOverflowable
{
private readonly Paragraph _paragraph;
@@ -18,6 +18,13 @@ namespace Spectre.Console
set => _paragraph.Alignment = value;
}
/// <inheritdoc/>
public Overflow? Overflow
{
get => _paragraph.Overflow;
set => _paragraph.Overflow = value;
}
/// <summary>
/// Initializes a new instance of the <see cref="Markup"/> class.
/// </summary>