Method SetContentSize
SetContentSize(Size?)
Sets the size of the View's content.
public void SetContentSize(Size? contentSize)
Parameters
contentSize
Size?
Remarks
See the View Layout Deep Dive for more information: https://gui-cs.github.io/Terminal.GuiV2Docs/docs/layout.html
Negative sizes are not supported.
If not explicitly set to a non-null value, and the View has Subviews, GetContentSize() will return the size of the Viewport.
If set to a non-null value, Viewport describes the portion of the content currently visible to the user. This enables virtual scrolling and the behavior of Content will be to use GetContentSize() to determine the size of the view.