Table of Contents

Class Margin

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

The Margin for a View. Accessed via Margin

public class Margin : Adornment, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable
Inheritance
Margin
Implements
Inherited Members

Remarks

The Margin is transparent by default. This can be overriden by explicitly setting Scheme.

Margins are drawn after all other Views in the application View hierarchy are drawn.

Margins have TransparentMouse enabled by default and are thus transparent to the mouse. This can be overridden by explicitly setting ViewportSettingsFlags.

See the Adornment class.

Constructors

Margin()

Initializes a new instance of View.

Margin(View)

Constructs a new adornment for the view specified by parent.

Properties

ShadowStyle

Gets or sets whether the View is shown with a shadow effect. The shadow is drawn on the right and bottom sides of the Margin.

Methods

BeginInit()

Signals the View that initialization is starting. See ISupportInitialize.

OnClearingViewport()

Called when the Thickness of the Adornment is to be cleared.

OnDrawingText()

Called when the Text of the View is to be drawn.

SetShadow(ShadowStyle)

Sets whether the Margin includes a shadow effect. The shadow is drawn on the right and bottom sides of the Margin.