Method GetContentSize | Terminal.Gui v2 (original) (raw)

Gets the size of the View's content.

a>

See the View Layout Deep Dive for more information: https://gui-cs.github.io/Terminal.GuiV2Docs/docs/layout.html

If the content size was not explicitly set by SetContentSize(Size?), and the View has no visible subviews, GetContentSize() will return the size ofViewport.

If the content size was not explicitly set by SetContentSize(Size?), 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.