## DocumentUtils.CreateRectangle method

Creates a path geometry representing a rectangle.

```csharp
public XpsPathGeometry CreateRectangle(RectangleF rectangle)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rectangle | RectangleF | The rectangle. |

### Return Value

The XPS path geometry.

### See Also

* class [XpsPathGeometry](../../../aspose.page.xps.xpsmodel/xpspathgeometry/)
* class [DocumentUtils](../)
* namespace [Aspose.Page.XPS](../../documentutils/)
* assembly [Aspose.Page](../../../)


