ControlDesigner.OnMouseDragBegin(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當左鍵在元件上方被按住並按住時,會收到呼叫。
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 ,以取得該點相對於控制點左上角的座標。