TextPath Class

Representation of a file system path.
public sealed class TextPath : IRenderable, IAlignable
Namespace
Spectre.Console
Interfaces

Constructors

TextPath(string)
Initializes a new instance of the TextPath class.

Properties

Justify? Alignment
Gets or sets the alignment.
Style LeafStyle
Gets or sets the leaf style.
Style RootStyle
Gets or sets the root style.
Style SeparatorStyle
Gets or sets the separator style.
Style StemStyle
Gets or sets the stem style.

Methods

Measurement Measure(RenderContext, int)
Measures the renderable object.
IEnumerable<Segment> Render(RenderContext, int)
Renders the object.

Extension Methods

T Alignment<TextPath>(Justify?)
Sets the alignment for an IAlignable object.
T Centered<TextPath>()
Sets the IAlignable object to be centered.
IEnumerable<Segment> GetSegments(IAnsiConsole)
Gets the segments for a renderable using the specified console.
TextPath LeafColor(Color)
Sets the leaf color.
TextPath LeafStyle(Style)
Sets the leaf style.
T LeftAligned<TextPath>()
Sets the IAlignable object to be left aligned.
T RightAligned<TextPath>()
Sets the IAlignable object to be right aligned.
TextPath RootColor(Color)
Sets the root color.
TextPath RootStyle(Style)
Sets the root style.
TextPath SeparatorColor(Color)
Sets the separator color.
TextPath SeparatorStyle(Style)
Sets the separator style.
TextPath StemColor(Color)
Sets the stem color.
TextPath StemStyle(Style)
Sets the stem style.