Property ContentSizeTracksViewport
ContentSizeTracksViewport
Gets or sets a value indicating whether the view's content size tracks the Viewport's size or not.
public bool ContentSizeTracksViewport { get; set; }
Property Value
Remarks
See the View Layout Deep Dive for more information: https://gui-cs.github.io/Terminal.GuiV2Docs/docs/layout.html
Value-Result
-
true
GetContentSize() will return the Viewport's size. Content scrolling will be disabled.
The behavior of Content will be to use position and size of the Subviews to determine the size of the view, ignoring GetContentSize().
-
false
The return value of GetContentSize() is independent of Viewport and Viewport describes the portion of the content currently visible to the user enabling content scrolling.
The behavior of Content will be to use GetContentSize() to determine the size of the view, ignoring the position and size of the Subviews.