語言

Behavior.OnDragLeave(Glyph, EventArgs) 方法

定義

允許自訂拖曳離開行為。

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

參數

g
Glyph

這是 Glyph 引發拖拉離行動的理由。

e
EventArgs

DragEventArgs A 包含事件資料。

給繼承者的注意事項

你可以覆寫這個 OnDragLeave(Glyph, EventArgs) 方法,讓 a Behavior 能指定自己的拖曳-離開規則。

適用於

另請參閱