方法
| Name | Description |
|---|---|
Rectangle Add(int left, int top, int right, int bottom); | 将具有指定 (left, top, right, bottom) 边界的矩形区域添加到区域中。返回添加的矩形。 |
Rectangle Add(Rectangle rectangle); | 将传入的矩形添加到字段区域中。返回添加的矩形。 |
bool Remove(Rectangle rectangle); | 从字段区域的矩形列表中移除传入的矩形。如果移除成功则返回 true,否则返回 false。 |
bool Remove(int rectangleIndex); | 从字段区域的矩形列表中移除具有指定索引的矩形区域。如果移除成功则返回 true,否则返回 false。 |
void Clear(); | 从列表中移除所有矩形区域。 |
