WorkflowDesignerMessageFilter.OnMouseLeave 方法

定義

發生於滑鼠指標離開物件的範圍時。

protected:
 virtual bool OnMouseLeave();
protected virtual bool OnMouseLeave ();
abstract member OnMouseLeave : unit -> bool
override this.OnMouseLeave : unit -> bool
Protected Overridable Function OnMouseLeave () As Boolean

傳回

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

範例

下列程式碼範例示範如何覆寫 OnMouseLeave 方法以傳回 false,讓設計工具結構中的其他元件也可以處理方法。

這個程式碼範例是 DesignerShell.cs 檔案中<Basic Designer Hosting SDK>範例的一部分。 如需詳細資訊,請參閱基本Designer裝載

protected override bool OnMouseLeave()
{
    //Allow other components to process this event by not returning true.
    mouseDown = false;
    return false;
}
Protected Overrides Function OnMouseLeave() As Boolean
    ' Allow other components to process this event by not returning true.
    mouseDown = False
    Return False
End Function

備註

OnMouseLeave 發生於滑鼠指標離開物件的範圍時。

適用於

另請參閱