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.

public:
 ScrollEventArgs(System::Windows::Controls::Primitives::ScrollEventType scrollEventType, double newValue);
public ScrollEventArgs (System.Windows.Controls.Primitives.ScrollEventType scrollEventType, double newValue);
new System.Windows.Controls.Primitives.ScrollEventArgs : System.Windows.Controls.Primitives.ScrollEventType * double -> System.Windows.Controls.Primitives.ScrollEventArgs
Public Sub New (scrollEventType As ScrollEventType, newValue As Double)

参数

scrollEventType
ScrollEventType

一个 ScrollEventType 枚举值,该值描述导致事件的 Thumb 移动的类型。A ScrollEventType enumeration value that describes the type of Thumb movement that caused the event.

newValue
Double

对应于 Thumb 中的 ScrollBar 的新位置的值。The value that corresponds to the new location of the Thumb in the ScrollBar.

适用于