ShapeElement.DoHitTestSelection Method

Returns true if a given point is in the selection handles around the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Overridable Function DoHitTestSelection ( _
    point As PointD, _
    hitTestInfo As DiagramHitTestInfo _
) As Boolean
public virtual bool DoHitTestSelection(
    PointD point,
    DiagramHitTestInfo hitTestInfo
)
public:
virtual bool DoHitTestSelection(
    PointD point, 
    DiagramHitTestInfo^ hitTestInfo
)
abstract DoHitTestSelection : 
        point:PointD * 
        hitTestInfo:DiagramHitTestInfo -> bool  
override DoHitTestSelection : 
        point:PointD * 
        hitTestInfo:DiagramHitTestInfo -> bool
public function DoHitTestSelection(
    point : PointD, 
    hitTestInfo : DiagramHitTestInfo
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the selection handles or highlight around the shape were hit; otherwise, false.

Remarks

Instead of calling this directly from a command, consider overriding OnClick() or OnDoubleClick(), in which the HitTestInfo is included in the event argument.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace