Table of Contents

Property Margin

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Margin

The Adornment that enables separation of a View from other SubViews of the same SuperView. The margin offsets the Viewport from the Frame.

public Margin Margin { get; }

Property Value

Margin

Remarks

Enabling ShadowStyle will change the Thickness of the Margin to include the shadow.

The adornments (Margin, Border, and Padding) are not part of the View's content and are not clipped by the View's Clip Area.

Changing the size of an adornment (Margin, Border, or Padding) will change the size of Frame and trigger LayoutSubviews() to update the layout of the SuperView and its Subviews.