ActivityDesigner.OnScroll(ScrollBar, Int32) 方法

定義

當使用者變更捲軸的位置時,通知 ActivityDesignerNotifies the ActivityDesigner when a user changes the scroll position.

protected:
 virtual void OnScroll(System::Windows::Forms::ScrollBar ^ sender, int value);
protected virtual void OnScroll (System.Windows.Forms.ScrollBar sender, int value);
abstract member OnScroll : System.Windows.Forms.ScrollBar * int -> unit
override this.OnScroll : System.Windows.Forms.ScrollBar * int -> unit
Protected Overridable Sub OnScroll (sender As ScrollBar, value As Integer)

參數

sender
ScrollBar

使用者變更位置的 ScrollBarThe ScrollBar on which the user changed position.

value
Int32

新的捲軸位置值。The new scroll position value.

備註

OnScroll 不會提供任何預設行為。OnScroll provide no default behavior. 您必須從衍生自 ActivityDesigner 的類別覆寫這個方法,以在捲軸位置變更時提供處理邏輯。You must override it in a class that derives from ActivityDesigner to provide processing logic when a scroll position changes.

適用於