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

13
NameTypeDescription
Behavior
FocusableBooleanMakes the scroll container a Tab stop that scrolls with the arrow keys, PageUp, PageDown, Home and End. See Focusable.
OverscrollBehaviorOverscrollBehaviorWhether scrolling continues in the parent scroll container once this one reaches its limit. See OverscrollBehavior.
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
ControllerScrollControllerScrolls this container from code. See Controller.
OverflowOverflowModeWhat happens to content taller than the border. See Overflow.
PaddingPaddingPadding inside the border as (left, top, right, bottom). Default is (0, 0, 0, 0).
ScrollIdStringStable identity of the scroll state. See ScrollId.
ScrollTopInt32Scroll offset in rows, applied when its value changes. See ScrollTop.
ScrollTopChangedEventCallback<Int32>Raised when the engine changes the scroll offset.
ScrollbarScrollbarSettingsHow the scrollbar looks and where it is drawn. See Scrollbar.
StickToBottomBooleanKeeps the end of the content in view while it grows. See StickToBottom.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()MethodRenders the component to the supplied RenderTreeBuilder.