Gets the mouse action to activate when the user next clicks a specific point on the diagram.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Overridable Function GetPotentialMouseAction ( _
mouseButtons As MouseButtons, _
point As PointD, _
hitTestInfo As DiagramHitTestInfo _
) As MouseAction
'使用
Dim instance As ShapeField
Dim mouseButtons As MouseButtons
Dim point As PointD
Dim hitTestInfo As DiagramHitTestInfo
Dim returnValue As MouseAction
returnValue = instance.GetPotentialMouseAction(mouseButtons, _
point, hitTestInfo)
public virtual MouseAction GetPotentialMouseAction(
MouseButtons mouseButtons,
PointD point,
DiagramHitTestInfo hitTestInfo
)
public:
virtual MouseAction^ GetPotentialMouseAction(
MouseButtons mouseButtons,
PointD point,
DiagramHitTestInfo^ hitTestInfo
)
public function GetPotentialMouseAction(
mouseButtons : MouseButtons,
point : PointD,
hitTestInfo : DiagramHitTestInfo
) : MouseAction
Parameters
mouseButtons
Type: System.Windows.Forms.MouseButtonsThe mouse buttons that can activate the potential mouse action.
point
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe point on the diagram that can activate the mouse action.
hitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfoThe information to gather if the potential mouse action occurs.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.MouseAction
The mouse action to activate when the user next clicks a specific point on the diagram.
Remarks
By default, the shape field is selected. If the shape field has the focus and can be edited, the in-place editor is invoked.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.