Table of Contents

Property WordWrap

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

WordWrap

Gets or sets a value indicating whether word wrapping is enabled.

public bool WordWrap { get; set; }

Property Value

bool

true if text should be wrapped to fit the available container width; otherwise, false.

Remarks

When enabled, long lines are automatically broken at word boundaries to fit within Viewport.Width. The horizontal scrollbar is hidden when word wrap is active.

Word wrap can only be enabled if Multiline is true. Attempting to enable word wrap on a single-line TextView has no effect.

When toggled, the cursor position is reset to (0,0) and the view is redrawn.