Share via


Behavior.OnMouseDown(Glyph, MouseButtons, Point) 方法

定義

會在任何按下滑鼠 (Mouse-Down) 訊息進入 BehaviorService 的裝飾項視窗時進行呼叫。

public:
 virtual bool OnMouseDown(System::Windows::Forms::Design::Behavior::Glyph ^ g, System::Windows::Forms::MouseButtons button, System::Drawing::Point mouseLoc);
public virtual bool OnMouseDown (System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.MouseButtons button, System.Drawing.Point mouseLoc);
public virtual bool OnMouseDown (System.Windows.Forms.Design.Behavior.Glyph? g, System.Windows.Forms.MouseButtons button, System.Drawing.Point mouseLoc);
abstract member OnMouseDown : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.MouseButtons * System.Drawing.Point -> bool
override this.OnMouseDown : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.MouseButtons * System.Drawing.Point -> bool
Public Overridable Function OnMouseDown (g As Glyph, button As MouseButtons, mouseLoc As Point) As Boolean

參數

g
Glyph

Glyph

button
MouseButtons

MouseButtons 值,表示按下的按鈕。

mouseLoc
Point

發生按一下動作的位置。

傳回

如果已處理訊息,則為 true;否則為 false

備註

OnMouseDoubleClick當任何滑鼠向下訊息進入 WndProcBehaviorService 裝飾項視窗時,就會呼叫 方法。 訊息會先在此傳遞至行為堆疊中的最 Behavior 上層。 true從這個方法傳回表示 訊息已由 Behavior 處理,不應繼續處理。 從這裡,訊息會傳送至適當的行為。

適用於

另請參閱