Applies to |
Returns the sub-collection of shapes located inside the given rectangle.
Object.InRectangle ( p1 As Point, p2 As Point ) As ShapeRange
The p1 and p2 points give the top-left and bottom-right corners of the rectangle. The method returns only those shapes that locate entirely inside the rectangle.