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 文件中的基本设计器宿主 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

适用于

另请参阅