## DocumentUtils::CreateRectangle method


创建表示矩形的路径几何体。

```cpp
System::SharedPtr<XpsModel::XpsPathGeometry> Aspose::Page::XPS::DocumentUtils::CreateRectangle(System::Drawing::RectangleF rectangle)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 矩形 | System::Drawing::RectangleF | 矩形。 |

### ReturnValue

该 [XPS](../../) 路径几何体。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPathGeometry](../../../aspose.page.xps.xpsmodel/xpspathgeometry/)
* Class [RectangleF](../../../system.drawing/rectanglef/)
* Class [DocumentUtils](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
