**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
```

矩形对象
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [OdRectangle(OdObject parent)](#OdRectangle-com.aspose.imaging.fileformats.opendocument.OdObject-) | 初始化 `OdRectangle` 类的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getCornerRadius()](#getCornerRadius--) | 获取或设置角半径。 |
| [setCornerRadius(float value)](#setCornerRadius-float-) | 获取或设置角半径。 |
### OdRectangle(OdObject parent) {#OdRectangle-com.aspose.imaging.fileformats.opendocument.OdObject-}
```
public OdRectangle(OdObject parent)
```


初始化 `OdRectangle` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| parent | [OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject) | 父级。 |

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


获取或设置角半径。

**Returns:**
float - 角半径。
### setCornerRadius(float value) {#setCornerRadius-float-}
```
public void setCornerRadius(float value)
```


获取或设置角半径。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 角半径。 |

