Padder
ClassFor examples and usage details, see the component documentation.
View Padder ComponentNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class Padder : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
Padder() | Constructor | — |
Properties
6| Name | Type | Description |
|---|---|---|
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. |
Common | ||
ChildContent | RenderFragment | Content to which padding will be applied. |
Other | ||
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. |
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. |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | Renders the component to the supplied RenderTreeBuilder. |