Class ScrollChangedEventArgs
- Namespace
- SharpConsoleUI.Core
- Assembly
- SharpConsoleUI.dll
Event arguments for scroll changes
public class ScrollChangedEventArgs : EventArgs
- Inheritance
-
ScrollChangedEventArgs
- Inherited Members
Constructors
ScrollChangedEventArgs(object, ScrollState, ScrollState, ScrollChangeReason)
Initializes a new instance of the ScrollChangedEventArgs class.
public ScrollChangedEventArgs(object scrollable, ScrollState previousState, ScrollState newState, ScrollChangeReason reason)
Parameters
scrollableobjectThe scrollable object whose scroll position changed.
previousStateScrollStateThe previous scroll state before the change.
newStateScrollStateThe new scroll state after the change.
reasonScrollChangeReasonThe reason for the scroll change.
Properties
HorizontalDelta
The change in horizontal offset
public int HorizontalDelta { get; }
Property Value
HorizontalOffsetChanged
Whether the horizontal offset changed
public bool HorizontalOffsetChanged { get; }
Property Value
NewState
The new scroll state
public ScrollState NewState { get; }
Property Value
PreviousState
The previous scroll state
public ScrollState PreviousState { get; }
Property Value
Reason
The reason for the scroll change
public ScrollChangeReason Reason { get; }
Property Value
Scrollable
The scrollable object whose scroll changed
public object Scrollable { get; }
Property Value
VerticalDelta
The change in vertical offset
public int VerticalDelta { get; }
Property Value
VerticalOffsetChanged
Whether the vertical offset changed
public bool VerticalOffsetChanged { get; }