public List <Shape> SelectShapeAt(int x, int y, int width, int height) { List <Shape> SelectedShapes = new List <Shape>(); foreach (Shape SelectedShape in ShapesDrawn) { if (SelectedShape.Inside(x, y, width, height)) { SelectedShape.Select(); SelectedShapes.Add(SelectedShape); } } return(SelectedShapes); }