ShapeElement::DoHitTestSelection Method (PointD, DiagramHitTestInfo^)
Visual Studio 2015
Returns true if a given point is in the selection handles around the shape.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Parameters
- point
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::PointD
A point on the diagram, relative to the parent shape.
- hitTestInfo
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::DiagramHitTestInfo^
The object that will receive the results of the hit test.
Return Value
Type: System::Booleantrue if the selection handles or highlight around the shape were hit; otherwise, false.
Instead of calling this directly from a command, consider overriding OnClick() or OnDoubleClick(), in which the HitTestInfo is included in the event argument.
Show: