ScrollViewMetrics
StructA snapshot of a scroll container's position and size.
Namespace:
RazorConsole.Core.LayoutAssembly:
RazorConsole.CoreDefinition
public readonly struct ScrollViewMetrics : IEquatable<ScrollViewMetrics>Constructors
1| Name | Type | Description |
|---|---|---|
ScrollViewMetrics(int, int, int)() | Constructor | A snapshot of a scroll container's position and size. |
Properties
7| Name | Type | Description |
|---|---|---|
Appearance | ||
ContentHeight | Int32 | The height of all the content, in rows. |
ViewportHeight | Int32 | The number of rows that are visible at once. |
Other | ||
CanScroll | Boolean | Gets a value indicating whether there is content to scroll to. |
IsAtEnd | Boolean | Gets a value indicating whether the last row is visible. |
IsAtStart | Boolean | Gets a value indicating whether the first row is visible. |
MaxTop | Int32 | Gets the largest value Top can have. |
Top | Int32 | The first visible row of the content. |