## Rectangle::Round method


从指定的 [RectangleF](../../rectanglef/) 对象构造一个 [Rectangle](../) 对象，方法是将 [RectangleF](../../rectanglef/) 对象的位置和大小值四舍五入到最近的整数值。

```cpp
static Rectangle System::Drawing::Rectangle::Round(const RectangleF &rect)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| rect | const RectangleF\& | 要转换的 [RectangleF](../../rectanglef/) 对象 |

### ReturnValue

从 **rect** 构造的 [Rectangle](../) 对象

## 另见

* Class [Rectangle](../)
* Class [RectangleF](../../rectanglef/)
* Class [Rectangle](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
