This topic has not yet been rated - Rate this topic

Diagram.HitTest Method

Gets the shapes to include in the hit test.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public ICollection HitTest(
	RectangleD clipRectangle,
	bool requireCompleteContainment
)

Parameters

clipRectangle
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
The diameter of the selection rectangle.
requireCompleteContainment
Type: System.Boolean
true 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: System.Collections.ICollection
The shapes to include in the hit test.

A hit test verifies whether a point is over a shape on the diagram.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ