Class
ScrollView
ConsoleMonster.Widgets
A vertical viewport for ordinary widgets. Lists, grids and logs keep their own virtualized row windows.
Inheritance
- object
- ScrollView
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Extension method ScrollView.WithMaxContentHeight
- Extension method ScrollView.WithScrollOffset
- Method ScrollViewFluent.WithMaxContentHeight
- Method ScrollViewFluent.WithScrollOffset
Accepted by parameters 4
- Extension method ScrollView.WithMaxContentHeight
- Extension method ScrollView.WithScrollOffset
- Method ScrollViewFluent.WithMaxContentHeight
- Method ScrollViewFluent.WithScrollOffset
Constructors
public ScrollView(IWidget content) #Creates a viewport over one stable content tree.
Parameters
- content ConsoleMonster.Layout.IWidget
- The content to clip and scroll.
Methods
public Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void Render(Region region, RenderContext context) #Renders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void ScrollBy(int rows) #Moves the viewport by a number of rows.
Parameters
- rows int
- Positive values move down.
Inherited Methods
Properties
Extension Methods
public static ScrollView WithMaxContentHeight(ScrollView scrollView, int value) #Sets ScrollView.MaxContentHeight: Maximum rows composed for non-virtualized content. Use a list, grid or log for larger data.
Parameters
- scrollView ConsoleMonster.Widgets.ScrollView
- The instance.
- value int
- The value.
public static ScrollView WithScrollOffset(ScrollView scrollView, int value) #Sets ScrollView.ScrollOffset: The first visible content row, clamped after measurement.
Parameters
- scrollView ConsoleMonster.Widgets.ScrollView
- The instance.
- value int
- The value.