Padder Class
Represents padding around a
IRenderable
object.
public sealed class Padder : Renderable, IRenderable, IPaddable, IExpandable
- Namespace
- Spectre
.Console - Interfaces
- Base Types
Constructors
-
Padder
(IRenderable, Padding?) -
Initializes a new instance of the
Padder
class.
Properties
Methods
-
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.