Padder

Class

For examples and usage details, see the component documentation.

View Padder Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class Padder : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
Padder()Constructor—

Properties

6
NameTypeDescription
Appearance
FillHeightBooleanWhether the padder should fill the height offered by its parent.
FillWidthBooleanWhether the padder should fill the width offered by its parent.
Common
ChildContentRenderFragmentContent to which padding will be applied.
Other
ExpandBooleanWhether the padder should expand to fill available space in native widget layout containers.
MarginPaddingMargin to apply outside the padded content.
PaddingPaddingPadding 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
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()MethodRenders the component to the supplied RenderTreeBuilder.