方法
| 名称 | 说明 |
|---|---|
| Rectangle Add(int left, int top, int right, int bottom); | 向区域添加一个边界为(left、top、right、bottom)的矩形。返回添加的矩形。 |
| Rectangle Add(Rectangle rectangle); | 将传入的矩形添加到 field 区域。返回添加的矩形。 |
| bool Remove(Rectangle rectangle); | 从 field 区域的矩形列表中移除传入的矩形。移除成功返回 true,否则返回 false。 |
| bool Remove(int rectangleIndex); | 从 field 区域的矩形列表中移除指定索引的矩形。移除成功返回 true,否则返回 false。 |
| void Clear(); | 清空列表中的所有矩形。 |
