**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.emf.MetaObject](../../com.aspose.imaging.fileformats.emf/metaobject), [com.aspose.imaging.fileformats.wmf.objects.WmfObject](../../com.aspose.imaging.fileformats.wmf.objects/wmfobject)
```
public class WmfRectangle extends WmfObject
```

The META\_RECTANGLE record paints a rectangle. The rectangle is outlined by using the pen and filled by using the brush that are defined in the playback device context.
## Constructors

| Constructor | Description |
| --- | --- |
| [WmfRectangle()](#WmfRectangle--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getRectangle()](#getRectangle--) | Gets or sets the rectangle. |
| [setRectangle(Rectangle value)](#setRectangle-com.aspose.imaging.Rectangle-) | Gets or sets the rectangle. |
### WmfRectangle() {#WmfRectangle--}
```
public WmfRectangle()
```


### getRectangle() {#getRectangle--}
```
public Rectangle getRectangle()
```


Gets or sets the rectangle.

Value: The rectangle.

**Returns:**
[Rectangle](../../com.aspose.imaging/rectangle)
### setRectangle(Rectangle value) {#setRectangle-com.aspose.imaging.Rectangle-}
```
public void setRectangle(Rectangle value)
```


Gets or sets the rectangle.

Value: The rectangle.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Rectangle](../../com.aspose.imaging/rectangle) |  |

