ScrollEventArgs 类

定义

为在 ScrollThumb 移动时发生的 ScrollBar 事件提供数据。Provides data for a Scroll event that occurs when the Thumb of a ScrollBar moves.

public ref class ScrollEventArgs : System::Windows::RoutedEventArgs
public class ScrollEventArgs : System.Windows.RoutedEventArgs
type ScrollEventArgs = class
    inherit RoutedEventArgs
Public Class ScrollEventArgs
Inherits RoutedEventArgs
继承
ScrollEventArgs

构造函数

ScrollEventArgs(ScrollEventType, Double)

通过使用指定的 ScrollEventArgs 枚举值和 ScrollEventType 中的 Thumb 控件的新位置,初始化 ScrollBar 类的实例。Initializes an instance of the ScrollEventArgs class by using the specified ScrollEventType enumeration value and the new location of the Thumb control in the ScrollBar.

属性

Handled

获取或设置一个值,该值指示针对路由事件(在其经过路由时)的事件处理的当前状态。Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

(继承自 RoutedEventArgs)
NewValue

获取一个值,该值表示 Thumb 中的 ScrollBar 的新位置。Gets a value that represents the new location of the Thumb in the ScrollBar.

OriginalSource

在父类进行任何可能的 Source 调整之前,获取由纯命中测试确定的原始报告源。Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.

(继承自 RoutedEventArgs)
RoutedEvent

获取或设置与此 RoutedEventArgs 实例关联的 RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance.

(继承自 RoutedEventArgs)
ScrollEventType

获取一个 ScrollEventType 枚举值,该值描述导致此事件的在 Thumb 位置中的更改。Gets the ScrollEventType enumeration value that describes the change in the Thumb position that caused this event.

Source

获取或设置对引发事件的对象的引用。Gets or sets a reference to the object that raised the event.

(继承自 RoutedEventArgs)

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InvokeEventHandler(Delegate, Object)

执行相应的类型强制转换以便为 ScrollEventHandler 事件调用类型安全的 Scroll 委托。Performs the appropriate type casting to call the type-safe ScrollEventHandler delegate for the Scroll event.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnSetSource(Object)

在派生类中重写时,每当实例的 Source 属性的值发生更改,则提供一个通知回调入口点。When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

(继承自 RoutedEventArgs)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅