Diagram.HitTest(RectangleD, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the list of shapes that are contained within the specified rectangle
public:
System::Collections::ICollection ^ HitTest(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD clipRectangle, bool requireCompleteContainment);
public System.Collections.ICollection HitTest (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD clipRectangle, bool requireCompleteContainment);
member this.HitTest : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * bool -> System.Collections.ICollection
Public Function HitTest (clipRectangle As RectangleD, requireCompleteContainment As Boolean) As ICollection
Parameters
- clipRectangle
- RectangleD
rectangle to hit test within (in diagram units)
- requireCompleteContainment
- Boolean
true if a shape has to be completely contained within the specified rectangle to hit test positive
Returns
A collection of shapes that intersect the rectangle