**Inheritance:**
java.lang.Object
```
public class OdPen
```

The open document pen
## Constructors

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

| Method | Description |
| --- | --- |
| [getPenStyle()](#getPenStyle--) | Gets the pen style. |
| [setPenStyle(int value)](#setPenStyle-int-) | Sets the pen style. |
| [getBrush()](#getBrush--) | Gets the brush. |
| [setBrush(OdBrush value)](#setBrush-com.aspose.imaging.fileformats.opendocument.objects.brush.OdBrush-) | Sets the brush. |
| [getWidth()](#getWidth--) | Gets the width. |
| [setWidth(int value)](#setWidth-int-) | Sets the width. |
### OdPen() {#OdPen--}
```
public OdPen()
```


### getPenStyle() {#getPenStyle--}
```
public final int getPenStyle()
```


Gets the pen style.

**Returns:**
int - the pen style.
### setPenStyle(int value) {#setPenStyle-int-}
```
public final void setPenStyle(int value)
```


Sets the pen style.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the pen style. |

### getBrush() {#getBrush--}
```
public final OdBrush getBrush()
```


Gets the brush.

**Returns:**
[OdBrush](../../com.aspose.imaging.fileformats.opendocument.objects.brush/odbrush) - the brush.
### setBrush(OdBrush value) {#setBrush-com.aspose.imaging.fileformats.opendocument.objects.brush.OdBrush-}
```
public final void setBrush(OdBrush value)
```


Sets the brush.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [OdBrush](../../com.aspose.imaging.fileformats.opendocument.objects.brush/odbrush) | the brush. |

### getWidth() {#getWidth--}
```
public final int getWidth()
```


Gets the width.

**Returns:**
int - the width.
### setWidth(int value) {#setWidth-int-}
```
public final void setWidth(int value)
```


Sets the width.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the width. |

