ScrollViewMetrics

Struct

A snapshot of a scroll container's position and size.

Namespace: RazorConsole.Core.Layout
Assembly: RazorConsole.Core

Definition

public readonly struct ScrollViewMetrics : IEquatable<ScrollViewMetrics>

Constructors

1
NameTypeDescription
ScrollViewMetrics(int, int, int)()ConstructorA snapshot of a scroll container's position and size.

Properties

7
NameTypeDescription
Appearance
ContentHeightInt32The height of all the content, in rows.
ViewportHeightInt32The number of rows that are visible at once.
Other
CanScrollBooleanGets a value indicating whether there is content to scroll to.
IsAtEndBooleanGets a value indicating whether the last row is visible.
IsAtStartBooleanGets a value indicating whether the first row is visible.
MaxTopInt32Gets the largest value Top can have.
TopInt32The first visible row of the content.

Methods

5
NameTypeDescription
Deconstruct(out int, out int, out int)()Method—
Equals(ScrollViewMetrics)()Boolean—
Equals(object)()Boolean—
GetHashCode()Int32—
ToString()String—

Operators

2
NameTypeDescription
operator ==(ScrollViewMetrics, ScrollViewMetrics)()Boolean—
operator !=(ScrollViewMetrics, ScrollViewMetrics)()Boolean—