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 | RightAll borders and all directions are resizable.
Bottom = BottomExpand | BottomContractBoth expand and contract on the bottom border.
BottomContract = 8Bottom border moves up — window shrinks from the bottom.
BottomExpand = 4Bottom border moves down — window grows taller.
ContractOnly = TopContract | BottomContract | LeftContract | RightContractAll borders may contract inward only.
ExpandOnly = TopExpand | BottomExpand | LeftExpand | RightExpandAll borders may expand outward only.
Left = LeftExpand | LeftContractBoth expand and contract on the left border.
LeftContract = 32Left border moves right — window shrinks from the left.
LeftExpand = 16Left border moves left — window grows wider.
None = 0No resize movement is permitted.
Right = RightExpand | RightContractBoth expand and contract on the right border.
RightContract = 128Right border moves left — window shrinks from the right.
RightExpand = 64Right border moves right — window grows wider.
Top = TopExpand | TopContractBoth expand and contract on the top border.
TopContract = 2Top border moves down — window shrinks from the top.
TopExpand = 1Top 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.