Udostępnij za pośrednictwem


Diagram.HitTest(RectangleD, Boolean) Method

Definition

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

Applies to