WorkflowDesignerMessageFilter.OnMouseHover(MouseEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the mouse pointer pauses above an object.
protected:
virtual bool OnMouseHover(System::Windows::Forms::MouseEventArgs ^ eventArgs);
protected virtual bool OnMouseHover (System.Windows.Forms.MouseEventArgs eventArgs);
abstract member OnMouseHover : System.Windows.Forms.MouseEventArgs -> bool
override this.OnMouseHover : System.Windows.Forms.MouseEventArgs -> bool
Protected Overridable Function OnMouseHover (eventArgs As MouseEventArgs) As Boolean
Parameters
- eventArgs
- MouseEventArgs
A MouseEventArgs that contains information about the event.
Returns
true
if the message is handled; otherwise, false
.
Examples
The following code example shows how to override the OnMouseHover method to return false
so that other components in the designer architecture can process the method.
This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. For more information, see Basic Designer Hosting.
protected override bool OnMouseHover(MouseEventArgs eventArgs)
{
//Allow other components to process this event by not returning true.
mouseDown = false;
return false;
}
Protected Overrides Function OnMouseHover(ByVal eventArgs As MouseEventArgs) As Boolean
' Allow other components to process this event by not returning true.
mouseDown = False
Return False
End Function
Remarks
OnMouseHover occurs when the mouse pointer hovers above an object.
Applies to
See also
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ