Control.OnQueryContinueDrag(QueryContinueDragEventArgs) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
引發 QueryContinueDrag 事件。
protected:
virtual void OnQueryContinueDrag(System::Windows::Forms::QueryContinueDragEventArgs ^ qcdevent);
C#
protected virtual void OnQueryContinueDrag(System.Windows.Forms.QueryContinueDragEventArgs qcdevent);
abstract member OnQueryContinueDrag : System.Windows.Forms.QueryContinueDragEventArgs -> unit
override this.OnQueryContinueDrag : System.Windows.Forms.QueryContinueDragEventArgs -> unit
Protected Overridable Sub OnQueryContinueDrag (qcdevent As QueryContinueDragEventArgs)
- qcdevent
- QueryContinueDragEventArgs
QueryContinueDragEventArgs,其中包含事件資料。
拖曳開始之後,此方法會由.NET Framework重複呼叫,直到拖曳作業取消或完成為止。
注意
如果您想要變更拖曳取消或發生置放的點,請覆寫這個方法。
引發事件會透過委派叫用此事件處理常式。 如需詳細資訊,請參閱 處理和引發事件。
方法 OnQueryContinueDrag 也可讓衍生類別處理事件,而不附加委派。 這是在衍生類別中處理事件的慣用技巧。
當在衍生類別中覆寫 OnQueryContinueDrag(QueryContinueDragEventArgs) 時,請確定呼叫基底類別的 OnQueryContinueDrag(QueryContinueDragEventArgs) 方法,使已註冊的委派能接收到事件。
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |