Table of Contents

Class BorderView

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

The View-backed rendering layer for the Border adornment. Created lazily by Border (via GetOrCreateView()) when rendering, arrangement, or other View-level functionality is needed.

public class BorderView : AdornmentView, IDisposable, ISupportInitializeNotification, ISupportInitialize, IAdornmentView, IDesignable
Inheritance
BorderView
Implements
Inherited Members
Extension Methods

Remarks

Renders a border around the view with the Title. A border using LineStyle will be drawn on the sides of Thickness that are greater than zero.

The Title of Parent will be drawn based on the value of Top:

<example>
    // If Thickness.Top is 1:
    ┌┤1234├──┐
    │        │
    └────────┘
    // If Thickness.Top is 2:
    ┌────┐
    ┌┤1234├──┐
    │        │
    └────────┘
    If Thickness.Top is 3:
    ┌────┐
    ┌┤1234├──┐
    │└────┘  │
    │        │
    └────────┘
</example>

The Border provides keyboard and mouse support for moving and resizing the View. See ViewArrangement.

Constructors

BorderView()

Parameter-less constructor required to support all views unit tests (e.g., AllViewsTester).

BorderView(Border)

Properties

DrawIndicator

Gets the subview used to render DrawIndicator.

Methods

BeginInit()

Signals the View that initialization is starting. See ISupportInitialize.

Dispose(bool)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

OnDrawingContent(DrawContext?)

Called when the View's content is to be drawn. The default implementation does nothing.

OnMouseEvent(Mouse)

Called when a mouse event occurs within the view's Viewport.

OnParentFrameChanged(Rectangle)