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 は、マウス ポインターがオブジェクトの境界から出たときに発生します。

適用対象

こちらもご覧ください