diff --git a/Terminal.Gui/View/ViewContent.cs b/Terminal.Gui/View/ViewContent.cs index dbd7f031a..e8a440d7e 100644 --- a/Terminal.Gui/View/ViewContent.cs +++ b/Terminal.Gui/View/ViewContent.cs @@ -14,42 +14,79 @@ public enum ViewportSettings None = 0, /// - /// If set, can be set to a rectangle that does not perfectly intersect with the Content Area - /// rectangle ( in the horizontal direction, enabling scrolling beyond the dimensions of the content area vertically. + /// If set, .X can be set to negative values enabling scrolling beyond the left of the + /// content area. /// /// /// - /// When not set, is constrained to the bounds of the Content Area rectangle in the horizontal direction. + /// When not set, .X is constrained to positive values. /// /// AllowNegativeX = 1, /// - /// If set, can be set to a rectangle that does not perfectly intersect with the Content Area - /// rectangle ( in the vertical direction, enabling scrolling beyond the dimensions of the content area vertically. + /// If set, .Y can be set to negative values enabling scrolling beyond the top of the + /// content area. /// /// /// - /// When not set, is constrained to the bounds of the Content Area rectangle in the vertical direction. + /// When not set, .Y is constrained to positive values. /// /// AllowNegativeY = 2, /// - /// If set, can be set to a rectangle that does not perfectly intersect with the Content Area - /// rectangle (, enabling scrolling beyond the dimensions of the content area vertically. + /// If set, .Size can be set to negative coordinates enabling scrolling beyond the top-left of the + /// content area. /// /// /// - /// When not set, is constrained to the bounds of the Content Area rectangle. + /// When not set, .Size is constrained to positive coordinates. /// /// AllowNegativeLocation = AllowNegativeX | AllowNegativeY, + /// + /// If set, .X can be set values greater than .Width enabling scrolling beyond the right + /// of the content area. + /// + /// + /// + /// When not set, .X is constrained to .Width - 1. + /// This means the last column of the content will remain visible even if there is an attempt to scroll the Viewport past the last column. + /// + /// AllowXGreaterThanContentWidth = 4, - AllowYGreaterThanContentHeight = 8, - AllowLocationCreaterThanContentSize = AllowXGreaterThanContentWidth | AllowYGreaterThanContentHeight, + /// + /// If set, .Y can be set values greater than .Height enabling scrolling beyond the right + /// of the content area. + /// + /// + /// + /// When not set, .Y is constrained to .Height - 1. + /// This means the last row of the content will remain visible even if there is an attempt to scroll the Viewport past the last row. + /// + /// + AllowYGreaterThanContentHeight = 8, + + /// + /// If set, .Size can be set values greater than enabling scrolling beyond the bottom-right + /// of the content area. + /// + /// + /// + /// When not set, is constrained to -1. + /// This means the last column and row of the content will remain visible even if there is an attempt to + /// scroll the Viewport past the last column or row. + /// + /// + AllowLocationGreaterThanContentSize = AllowXGreaterThanContentWidth | AllowYGreaterThanContentHeight, + + /// + /// If set, the default implementation will clear only the portion of the content + /// area that is visible within the . See also . + /// ClearVisibleContentOnly = 16, }