Behavior.OnDragDrop(Glyph, DragEventArgs) 方法

定义

允许自定义的拖放行为。

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

参数

g
Glyph

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

e
DragEventArgs

包含事件数据的 DragEventArgs

继承者说明

可以重写该方法 OnDragDrop(Glyph, DragEventArgs) ,以便一个 Behavior 可以指定其自己的拖放规则。

适用于

另请参阅