Diagram.HitTest(RectangleD, Boolean) 方法

定义

获取包含在指定矩形内的形状的列表

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

参数

clipRectangle
RectangleD

要在关系图单位的 (中进行命中测试的矩形)

requireCompleteContainment
Boolean

如果必须将形状完全包含在指定的矩形中以便对其进行命中测试,则为 true

返回

ICollection

与矩形相交的形状的集合

适用于