描述
构造函数
| 构造函数 | 描述 |
|---|---|
Region Region() | 创建一个空区域。 |
Region Region( RectArray rectArray ) | 由 RectArray 类型的值构造。创建一个包含 rectArray 数组中 Rectangle 的区域。 |
运算符
| 运算符 | 说明 |
|---|---|
Or | 合并两个区域。 |
And | 求两个区域的交集;或求某一区域与一个 Rectangle 的交集。返回 Region 类型的值。 |
方法
| 方法 | 說明 |
|---|---|
XCoordinate Left() | 傳回區域的左邊界。唯讀屬性。 |
YCoordinate top() | 傳回區域的上邊界。唯讀屬性。 |
XCoordinate Right() | 傳回區域的右邊界。唯讀屬性。 |
YCoordinate Bottom() | 傳回區域的下邊界。唯讀屬性。 |
Distance Width() | 傳回區域的寬度。唯讀屬性。 |
Distance Height() | 傳回區域的高度。唯讀屬性。 |
Area Area() | 傳回區域的面積。唯讀屬性。 |
Void Inflate( Distance xDist, Distance yDist ) | 將區域向左右各擴張 xDist,並向上下各擴張 yDist。 |
Rect Rect() | 傳回外接該區域的矩形副本。 |
