**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.opendocument.OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject), [com.aspose.imaging.fileformats.opendocument.objects.graphic.OdGraphicObject](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odgraphicobject), [com.aspose.imaging.fileformats.opendocument.objects.graphic.OdStyledObject](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odstyledobject)
```
public class OdRectangle extends OdStyledObject
```

The rectangle object
## Constructors

| Constructor | Description |
| --- | --- |
| [OdRectangle(OdObject parent)](#OdRectangle-com.aspose.imaging.fileformats.opendocument.OdObject-) | Initializes a new instance of the `OdRectangle` class. |
## Methods

| Method | Description |
| --- | --- |
| [getCornerRadius()](#getCornerRadius--) | Gets or sets the corner radius. |
| [setCornerRadius(float value)](#setCornerRadius-float-) | Gets or sets the corner radius. |
### OdRectangle(OdObject parent) {#OdRectangle-com.aspose.imaging.fileformats.opendocument.OdObject-}
```
public OdRectangle(OdObject parent)
```


Initializes a new instance of the `OdRectangle` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parent | [OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject) | The parent. |

### getCornerRadius() {#getCornerRadius--}
```
public float getCornerRadius()
```


Gets or sets the corner radius.

**Returns:**
float - The corner radius.
### setCornerRadius(float value) {#setCornerRadius-float-}
```
public void setCornerRadius(float value)
```


Gets or sets the corner radius.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | The corner radius. |

