Scrollable<TItem>.ScrollContext<T>

Class

For examples and usage details, see the component documentation.

View Scrollable<TItem>.ScrollContext<T> Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public sealed record Scrollable<TItem>.ScrollContext<T> : IEquatable<Scrollable<TItem>.ScrollContext<T>>

Constructors

1
NameTypeDescription
ScrollContext(IReadOnlyList<T>, Func<KeyboardEventArgs, Task>, int, int)()Constructor

Properties

6
NameTypeDescription
Events
KeyDownEventHandlerFunc<KeyboardEventArgs, Task>
Other
CountInt32Gets the number of visible items.
CurrentOffsetInt32
this[int]()<T>Gets the item at the specified index within the visible items.
ItemsIReadOnlyList<T>
PagesCountInt32

Methods

6
NameTypeDescription
Deconstruct(out IReadOnlyList<T>, out Func<KeyboardEventArgs, Task>, out int, out int)()Method
Equals(ScrollContext<T>?)()Boolean
Equals(object?)()Boolean
GetEnumerator()IEnumerator<T>Returns an enumerator that iterates through the visible items.
GetHashCode()Int32
ToString()String

Operators

2
NameTypeDescription
operator ==(ScrollContext<T>?, ScrollContext<T>?)()Boolean
operator !=(ScrollContext<T>?, ScrollContext<T>?)()Boolean