Padder Class

Represents padding around a IRenderable object.
public sealed class Padder : Renderable, IRenderable, IPaddable, IExpandable
Base Types


Padder(IRenderable, Padding?)
Initializes a new instance of the Padder class.


bool Expand
Gets or sets a value indicating whether or not the padding should fit the available space. If false, the padding width will be auto calculated. Defaults to false.
Padding? Padding
Gets or sets the padding.


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

Extension Methods

T Collapse<Padder>()
Tells the specified object to not expand to the available area but take as little space as possible.
T Expand<Padder>()
Tells the specified object to expand to the available area.
IEnumerable<Segment> GetSegments(IAnsiConsole)
Gets the segments for a renderable using the specified console.
T PadBottom<Padder>(int)
Sets the bottom padding.
T Padding<Padder>(int, int, int, int)
Sets the left, top, right and bottom padding.
T Padding<Padder>(int, int)
Sets the horizontal and vertical padding.
T Padding<Padder>(Padding)
Sets the padding.
T PadLeft<Padder>(int)
Sets the left padding.
T PadRight<Padder>(int)
Sets the right padding.
T PadTop<Padder>(int)
Sets the top padding.