Table of Contents

Enum ViewportSettings

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Settings for how the Viewport behaves relative to the View's Content area.

[Flags]
public enum ViewportSettings

Fields

AllowLocationGreaterThanContentSize = AllowXGreaterThanContentWidth | AllowYGreaterThanContentHeight

If set, Viewport.Size can be set values greater than ContentSize enabling scrolling beyond the bottom-right of the content area.

AllowNegativeLocation = AllowNegativeX | AllowNegativeY

If set, Viewport.Size can be set to negative coordinates enabling scrolling beyond the top-left of the content area.

AllowNegativeX = 1

If set, Viewport.X can be set to negative values enabling scrolling beyond the left of the content area.

AllowNegativeY = 2

If set, Viewport.Y can be set to negative values enabling scrolling beyond the top of the content area.

AllowXGreaterThanContentWidth = 4

If set, Viewport.X can be set values greater than ContentSize.Width enabling scrolling beyond the right of the content area.

AllowYGreaterThanContentHeight = 8

If set, Viewport.Y can be set values greater than ContentSize.Height enabling scrolling beyond the right of the content area.

ClearContentOnly = 32

If set Clear() will clear only the portion of the content area that is visible within the Viewport. This is useful for views that have a content area larger than the Viewport and want the area outside the content to be visually distinct.

ClipContentOnly = 16

By default, clipping is applied to the Viewport. Setting this flag will cause clipping to be applied to the visible content area.

None = 0

No settings.