## Rectangle::Round method


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | const RectangleF\& | 要转换的 [RectangleF](../../rectanglef/) 对象 |

### ReturnValue

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

## 另见

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