Share via


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 可以指定自己的拖放規則。

適用於

另請參閱