共用方式為


Behavior.OnDragOver(Glyph, DragEventArgs) 方法

定義

允許自訂的拖過 (Drag-Over) 行為。

public:
 virtual void OnDragOver(System::Windows::Forms::Design::Behavior::Glyph ^ g, System::Windows::Forms::DragEventArgs ^ e);
public virtual void OnDragOver (System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.DragEventArgs e);
public virtual void OnDragOver (System.Windows.Forms.Design.Behavior.Glyph? g, System.Windows.Forms.DragEventArgs e);
abstract member OnDragOver : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.DragEventArgs -> unit
override this.OnDragOver : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.DragEventArgs -> unit
Public Overridable Sub OnDragOver (g As Glyph, e As DragEventArgs)

參數

g
Glyph

Glyph,會在其上叫用拖過行為。

e
DragEventArgs

DragEventArgs,其中包含事件資料。

給繼承者的注意事項

您可以覆寫 OnDragOver(Glyph, DragEventArgs) 方法,讓 Behavior 可以指定它自己的拖曳規則。

適用於

另請參閱