WorkflowDesignerMessageFilter.OnMouseLeave 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当鼠标指针离开对象的边界时发生。
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。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈