Share via


Behavior.OnMouseUp(Glyph, MouseButtons) 方法

定義

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

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

參數

g
Glyph

Glyph

button
MouseButtons

MouseButtons 值,表示按下的按鈕。

傳回

Boolean

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

備註

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

適用於

另請參閱