mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
24 lines
433 B
C#
24 lines
433 B
C#
using System.Drawing;
|
|
|
|
namespace CliFx.Models
|
|
{
|
|
public class TextSpan
|
|
{
|
|
public string Text { get; }
|
|
|
|
public Color Color { get; }
|
|
|
|
public TextSpan(string text, Color color)
|
|
{
|
|
Text = text;
|
|
Color = color;
|
|
}
|
|
|
|
public TextSpan(string text)
|
|
: this(text, Color.Gray)
|
|
{
|
|
}
|
|
|
|
public override string ToString() => Text;
|
|
}
|
|
} |