## DocumentUtils::CreateRectangle method


Creates a path geometry representing a rectangle.

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


| Parameter | Type | Description |
| --- | --- | --- |
| rectangle | System::Drawing::RectangleF | The rectangle. |

### ReturnValue

The [XPS](../../) path geometry.

## See Also

* 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++](../../../)
