Compartilhar via


ShapeField.GetPotentialMouseAction Method

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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaração
Public Overridable Function GetPotentialMouseAction ( _
    mouseButtons As MouseButtons, _
    point As PointD, _
    hitTestInfo As DiagramHitTestInfo _
) As MouseAction
public virtual MouseAction GetPotentialMouseAction(
    MouseButtons mouseButtons,
    PointD point,
    DiagramHitTestInfo hitTestInfo
)
public:
virtual MouseAction^ GetPotentialMouseAction(
    MouseButtons mouseButtons, 
    PointD point, 
    DiagramHitTestInfo^ hitTestInfo
)
abstract GetPotentialMouseAction : 
        mouseButtons:MouseButtons * 
        point:PointD * 
        hitTestInfo:DiagramHitTestInfo -> MouseAction 
override GetPotentialMouseAction : 
        mouseButtons:MouseButtons * 
        point:PointD * 
        hitTestInfo:DiagramHitTestInfo -> MouseAction 
public function GetPotentialMouseAction(
    mouseButtons : MouseButtons, 
    point : PointD, 
    hitTestInfo : DiagramHitTestInfo
) : MouseAction

Parameters

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.

.NET Framework Security

See Also

Reference

ShapeField Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace