Udostępnij za pośrednictwem


DiagramClientView.GetPotentialMouseAction Method

Definition

Retrieves the potential mouse action that should be made active on the very next MouseDown event if the MouseDown event occurs at the specified point.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::MouseAction ^ GetPotentialMouseAction(System::Windows::Forms::MouseButtons mouseButtons, Microsoft::VisualStudio::Modeling::Diagrams::PointD point, Microsoft::VisualStudio::Modeling::Diagrams::DiagramHitTestInfo ^ hitTestInfo);
public Microsoft.VisualStudio.Modeling.Diagrams.MouseAction GetPotentialMouseAction (System.Windows.Forms.MouseButtons mouseButtons, Microsoft.VisualStudio.Modeling.Diagrams.PointD point, Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo hitTestInfo);
member this.GetPotentialMouseAction : System.Windows.Forms.MouseButtons * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo -> Microsoft.VisualStudio.Modeling.Diagrams.MouseAction
Public Function GetPotentialMouseAction (mouseButtons As MouseButtons, point As PointD, hitTestInfo As DiagramHitTestInfo) As MouseAction

Parameters

mouseButtons
MouseButtons

The mouse buttons currently pressed.

point
PointD

The location of the mouse relative to the Diagram's top-left in world units.

hitTestInfo
DiagramHitTestInfo

The object to receive the resultant hit test information.

Returns

A mouse action that should be made active on the very next MouseDown event if the MouseDown event occurs at the specified point.

Applies to