Share via


Behavior.OnDragOver(Glyph, DragEventArgs) 方法

定义

允许自定义的拖过行为。

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以便 可以指定其自己的拖动规则。

适用于

另请参阅