WorkflowDesignerMessageFilter.OnMouseDown(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 a mouse button is clicked.
protected:
virtual bool OnMouseDown(System::Windows::Forms::MouseEventArgs ^ eventArgs);
protected virtual bool OnMouseDown (System.Windows.Forms.MouseEventArgs eventArgs);
abstract member OnMouseDown : System.Windows.Forms.MouseEventArgs -> bool
override this.OnMouseDown : System.Windows.Forms.MouseEventArgs -> bool
Protected Overridable Function OnMouseDown (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 OnMouseDown 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 OnMouseDown(MouseEventArgs eventArgs)
{
//Allow other components to process this event by not returning true.
this.mouseDown = true;
return false;
}
Protected Overrides Function OnMouseDown(ByVal eventArgs As System.Windows.Forms.MouseEventArgs) As Boolean
' Allow other components to process this event by not returning true.
mouseDown = True
Return False
End Function
Remarks
OnMouseDown occurs when a mouse button is clicked.
Applies to
See also
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за