Diagram.HitTest Method
Gets the shapes to include in the hit test.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Function HitTest ( _
clipRectangle As RectangleD, _
requireCompleteContainment As Boolean _
) As ICollection
public ICollection HitTest(
RectangleD clipRectangle,
bool requireCompleteContainment
)
public:
ICollection^ HitTest(
RectangleD clipRectangle,
bool requireCompleteContainment
)
member HitTest :
clipRectangle:RectangleD *
requireCompleteContainment:bool -> ICollection
public function HitTest(
clipRectangle : RectangleD,
requireCompleteContainment : boolean
) : ICollection
Parameters
clipRectangle
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDThe diameter of the selection rectangle.
requireCompleteContainment
Type: Booleantrue to include a shape only if the whole shape is in the selection rectangle; false to include shapes that are partially in the selection rectangle.
Return Value
Type: ICollection
The shapes to include in the hit test.
Remarks
A hit test verifies whether a point is over a shape on the diagram.
.NET Framework Security
- 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.