Padder
LayoutAdds padding around its children.
@using Spectre.Console
@using RazorConsole.Components
<Border>
<Padder Padding="new Padding(2, 1, 2, 1)">
<Markup Content="Padded content" />
</Padder>
</Border>Parameters
15| Name | Type | Default | Description |
|---|---|---|---|
Behavior | |||
Focusable | Boolean | — | Makes the scroll container a Tab stop that scrolls with the arrow keys, PageUp, PageDown, Home and End. See Focusable. |
OverscrollBehavior | OverscrollBehavior | — | Whether scrolling continues in the parent scroll container once this one reaches its limit. See OverscrollBehavior. |
Appearance | |||
FillHeight | Boolean | — | Whether the padder should fill the height offered by its parent. |
FillWidth | Boolean | — | Whether the padder should fill the width offered by its parent. |
Events | |||
ScrollTopChanged | EventCallback<Int32> | — | Raised when the engine changes the scroll offset. |
Common | |||
ChildContent | RenderFragment | — | Content to which padding will be applied. |
Other | |||
Controller | ScrollController | — | Scrolls this container from code. See Controller. |
Expand | Boolean | — | Whether the padder should expand to fill available space in native widget layout containers. |
Margin | Padding | — | Margin to apply outside the padded content. |
Overflow | OverflowMode | — | What happens to content taller than the padder. See Overflow. |
Padding | Padding | — | Padding to apply as (left, top, right, bottom) in characters. Default is (0, 0, 0, 0). Example: new Padding(2, 1, 2, 1) adds 2 characters horizontally and 1 line vertically. |
ScrollId | String | — | Stable identity of the scroll state. See ScrollId. |
ScrollTop | Int32 | — | Scroll offset in rows, applied when its value changes. See ScrollTop. |
Scrollbar | ScrollbarSettings | — | How the scrollbar looks and where it is drawn. See Scrollbar. |
StickToBottom | Boolean | — | Keeps the end of the content in view while it grows. See StickToBottom. |