Group Objects in Closed Curve

Hi all,

Is there any way to make a single group of the objects in a closed curve by only clicking that closed curve?