Method SetContentSize | Terminal.Gui v2 (original) (raw)
Sets the size of the View's content.
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 ofViewport.
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 theContent 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.