Represents something that can be rendered to the console.
Methods
public Measurement Measure(RenderOptions options, int maxWidth)
Measures the renderable object.
Parameters:
options (RenderOptions)The render options.
maxWidth (int)The maximum allowed width.
Returns:
The minimum and maximum width of the object.
public IEnumerable<Segment> Render(RenderOptions options, int maxWidth)
Renders the object.
Parameters:
options (RenderOptions)The render options.
maxWidth (int)The maximum allowed width.
Returns:
A collection of segments.
Extension Methods
IEnumerable<Segment> GetSegments(this IRenderable renderable, IAnsiConsole console)Gets the segments for a renderable using the specified console.
Returns:
An enumerable containing segments representing the specified IRenderable.