Table of Contents

Enum ResizeBorderDirections

Namespace
SharpConsoleUI
Assembly
SharpConsoleUI.dll

Per-border movement permissions for window resizing. Each border has an Expand direction (border moves outward, window grows) and a Contract direction (border moves inward, window shrinks).

[Flags]
public enum ResizeBorderDirections
Extension Methods

Fields

All = Top | Bottom | Left | Right

All borders and all directions are resizable.

Bottom = BottomExpand | BottomContract

Both expand and contract on the bottom border.

BottomContract = 8

Bottom border moves up — window shrinks from the bottom.

BottomExpand = 4

Bottom border moves down — window grows taller.

ContractOnly = TopContract | BottomContract | LeftContract | RightContract

All borders may contract inward only.

ExpandOnly = TopExpand | BottomExpand | LeftExpand | RightExpand

All borders may expand outward only.

Left = LeftExpand | LeftContract

Both expand and contract on the left border.

LeftContract = 32

Left border moves right — window shrinks from the left.

LeftExpand = 16

Left border moves left — window grows wider.

None = 0

No resize movement is permitted.

Right = RightExpand | RightContract

Both expand and contract on the right border.

RightContract = 128

Right border moves left — window shrinks from the right.

RightExpand = 64

Right border moves right — window grows wider.

Top = TopExpand | TopContract

Both expand and contract on the top border.

TopContract = 2

Top border moves down — window shrinks from the top.

TopExpand = 1

Top border moves up — window grows taller.

Remarks

Sign conventions when dragging or pressing keyboard shortcuts:

  • Top border — Expand: border moves up; Contract: border moves down
  • Bottom border — Expand: border moves down; Contract: border moves up
  • Left border — Expand: border moves left; Contract: border moves right
  • Right border — Expand: border moves right; Contract: border moves left

Keyboard shortcuts (Shift+arrows) only trigger Expand movement on the natural border.