共用方式為


Behavior.OnMouseHover(Glyph, Point) 方法

定義

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

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

參數

g
Glyph

Glyph

mouseLoc
Point

發生停留的位置。

傳回

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

備註

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

適用於

另請參閱