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, and the View has no visible subviews, GetContentSize() will return the size of Viewport.
If not explicitly set, and the View has visible subviews, GetContentSize() will return the maximum position + dimension of the Subviews, supporting Auto(DimAutoStyle, Dim?, Dim?) with the Content flag set.
If set Viewport describes the portion of the content currently visible to the user. This enables virtual scrolling.
If set the behavior of Content will be to use the ContentSize to determine the size of the view.