Behavior.OnDragEnter(Glyph, DragEventArgs) 方法

定义

允许自定义的拖入行为。

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

参数

g
Glyph

一个 Glyph,拖入行为对其调用。

e
DragEventArgs

包含事件数据的 DragEventArgs

继承者说明

可以重写 方法,OnDragEnter(Glyph, DragEventArgs)Behavior以便 可以指定自己的拖动进入规则。

适用于

另请参阅