Method SetContentWidth
SetContentWidth(int?)
Sets the width of the View's content area independently of the height.
public void SetContentWidth(int? contentWidth)
Parameters
Remarks
See the View Layout Deep Dive for more information: https://gui-cs.github.io/Terminal.Gui/docs/layout.html
Negative values are not supported.
If set to null, GetContentWidth() will track the Viewport width.
If set to a non-null value, the content width is independent of the Viewport width, enabling horizontal scrolling.
This method follows the Cancellable Work Pattern (CWP). The ContentSizeChanging event is raised before the change, and ContentSizeChanged is raised after.
- See Also