共用方式為


Behavior.OnDragEnter(Glyph, DragEventArgs) 方法

定義

允許自訂的拖入 (drag-enter) 行為。

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

適用於

另請參閱