Border

Class

For examples and usage details, see the component documentation.

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

Definition

public class Border : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
Border()Constructor

Properties

4
NameTypeDescription
Appearance
BorderColorNullable<Color>Color of the border. If null , uses default console color.
BoxBorderBoxBorderStyle of the border. Default is Rounded. See BoxBorder for available styles.
Common
ChildContentRenderFragmentRenders a simple border around content without a title (simplified wrapper for Panel).
Other
PaddingPaddingPadding inside the border as (left, top, right, bottom). Default is (0, 0, 0, 0).

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method