**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)
```
public class OdStyledObject extends OdGraphicObject
```

The open document styled graphic object.
## Constructors

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

| Method | Description |
| --- | --- |
| [getStyle()](#getStyle--) | Gets or sets the style. |
| [setStyle(OdGraphicStyle value)](#setStyle-com.aspose.imaging.fileformats.opendocument.objects.OdGraphicStyle-) | Gets or sets the style. |
| [getRectangle()](#getRectangle--) | Gets or sets the rectangle. |
| [setRectangle(RectangleF value)](#setRectangle-com.aspose.imaging.RectangleF-) | Gets or sets the rectangle. |
### OdStyledObject(OdObject parent) {#OdStyledObject-com.aspose.imaging.fileformats.opendocument.OdObject-}
```
public OdStyledObject(OdObject parent)
```


Initializes a new instance of the `OdStyledObject` class.

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

### getStyle() {#getStyle--}
```
public OdGraphicStyle getStyle()
```


Gets or sets the style.

**Returns:**
[OdGraphicStyle](../../com.aspose.imaging.fileformats.opendocument.objects/odgraphicstyle) - The style.
### setStyle(OdGraphicStyle value) {#setStyle-com.aspose.imaging.fileformats.opendocument.objects.OdGraphicStyle-}
```
public void setStyle(OdGraphicStyle value)
```


Gets or sets the style.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [OdGraphicStyle](../../com.aspose.imaging.fileformats.opendocument.objects/odgraphicstyle) | The style. |

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


Gets or sets the rectangle.

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


Gets or sets the rectangle.

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

