110,539
社区成员
发帖
与我相关
我的任务
分享
List<RectangleF> lr = new List<RectangleF>();
for (int i = 0; i < 25; i++)
{
RectangleF rect = new RectangleF(……);
lr.add(rect);
}
Click 事件
for (int i = 0; i < lr.Count; i++)
{
if (lr[i].Contains(e.Location))
{
MessageBox.Show("……");
}
}