---
title: "Path.Rectangle Method (Single, Single, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Path_Rectangle_4_37f6c741.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# Path.Rectangle Method (Single, Single, Single, Single)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Creates a new [Path](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md) shaped as a rectangle defined by a pair of coordinates, a width, and a height.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static Path Rectangle(float x,float y,float width,float height
)
```
 
### Parameters
 
 - x
     - Type: System.Single
The x-coordinate of the upper-left corner of the rectangle.

 - y
     - Type: System.Single
The y-coordinate of the upper-left corner of the rectangle.

 - width
     - Type: System.Single
The width of the rectangle.

 - height
     - Type: System.Single
The height of the rectangle.
 
### Return Value
A new [Path](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md) instance.
   
## See Also

### Reference

- [Path Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md)
- [Rectangle Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_Path_Rectangle.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
