Udostępnij za pośrednictwem


WorkflowDesignerMessageFilter.OnMouseDown(MouseEventArgs) Metoda

Definicja

Występuje po kliknięciu przycisku myszy.

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

Parametry

eventArgs
MouseEventArgs

Element MouseEventArgs zawierający informacje o zdarzeniu.

Zwraca

true jeśli komunikat jest obsługiwany; w przeciwnym razie , false.

Przykłady

W poniższym przykładzie kodu pokazano, jak zastąpić metodę OnMouseDown , aby false inne składniki architektury projektanta mogły przetworzyć metodę.

Ten przykład kodu jest częścią przykładowego zestawu SDK hostingu projektanta podstawowego z pliku DesignerShell.cs. Aby uzyskać więcej informacji, zobacz Hosting projektanta podstawowego.

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

Uwagi

OnMouseDown występuje po kliknięciu przycisku myszy.

Dotyczy

Zobacz też