Table of Contents

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

scrollable object

The scrollable object whose scroll position changed.

previousState ScrollState

The previous scroll state before the change.

newState ScrollState

The new scroll state after the change.

reason ScrollChangeReason

The reason for the scroll change.

Properties

HorizontalDelta

The change in horizontal offset

public int HorizontalDelta { get; }

Property Value

int

HorizontalOffsetChanged

Whether the horizontal offset changed

public bool HorizontalOffsetChanged { get; }

Property Value

bool

NewState

The new scroll state

public ScrollState NewState { get; }

Property Value

ScrollState

PreviousState

The previous scroll state

public ScrollState PreviousState { get; }

Property Value

ScrollState

Reason

The reason for the scroll change

public ScrollChangeReason Reason { get; }

Property Value

ScrollChangeReason

Scrollable

The scrollable object whose scroll changed

public object Scrollable { get; }

Property Value

object

VerticalDelta

The change in vertical offset

public int VerticalDelta { get; }

Property Value

int

VerticalOffsetChanged

Whether the vertical offset changed

public bool VerticalOffsetChanged { get; }

Property Value

bool