語言

ControlDesigner.OnMouseDragBegin(Int32, Int32) 方法

定義

當左鍵在元件上方被按住並按住時,會收到呼叫。

protected:
 virtual void OnMouseDragBegin(int x, int y);
protected virtual void OnMouseDragBegin(int x, int y);
abstract member OnMouseDragBegin : int * int -> unit
override this.OnMouseDragBegin : int * int -> unit
Protected Overridable Sub OnMouseDragBegin (x As Integer, y As Integer)

參數

x
Int32

滑鼠在螢幕座標中的 x 位置。

y
Int32

滑鼠在螢幕座標中的 y 位置。

備註

此方法在拖放操作開始時被呼叫。

Note

你可以將螢幕座標中的一點傳給 PointToClient 類別的方法 Control ,以取得該點相對於控制點左上角的座標。

適用於