**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.emf.MetaObject](../../com.aspose.imaging.fileformats.emf/metaobject), [com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusObject](../../com.aspose.imaging.fileformats.emf.emfplus.objects/emfplusobject), [com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusGraphicsObjectType](../../com.aspose.imaging.fileformats.emf.emfplus.objects/emfplusgraphicsobjecttype)
```
public final class EmfPlusPen extends EmfPlusGraphicsObjectType
```

The EmfPlusPen object specifies a graphics pen for the drawing of lines.
## Constructors

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

| Method | Description |
| --- | --- |
| [getType()](#getType--) | Gets or sets This field MUST be set to zero |
| [setType(int value)](#setType-int-) | Gets or sets This field MUST be set to zero |
| [getPenData()](#getPenData--) | Gets or sets an EmfPlusPenData object that specifies properties of the graphics pen |
| [setPenData(EmfPlusPenData value)](#setPenData-com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusPenData-) | Gets or sets an EmfPlusPenData object that specifies properties of the graphics pen |
| [getBrushObject()](#getBrushObject--) | Gets or sets an EmfPlusBrush object that specifies a graphics brush associated with the pen |
| [setBrushObject(EmfPlusBrush value)](#setBrushObject-com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusBrush-) | Gets or sets an EmfPlusBrush object that specifies a graphics brush associated with the pen |
### EmfPlusPen() {#EmfPlusPen--}
```
public EmfPlusPen()
```


### getType() {#getType--}
```
public int getType()
```


Gets or sets This field MUST be set to zero

**Returns:**
int
### setType(int value) {#setType-int-}
```
public void setType(int value)
```


Gets or sets This field MUST be set to zero

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### getPenData() {#getPenData--}
```
public EmfPlusPenData getPenData()
```


Gets or sets an EmfPlusPenData object that specifies properties of the graphics pen

**Returns:**
[EmfPlusPenData](../../com.aspose.imaging.fileformats.emf.emfplus.objects/emfpluspendata)
### setPenData(EmfPlusPenData value) {#setPenData-com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusPenData-}
```
public void setPenData(EmfPlusPenData value)
```


Gets or sets an EmfPlusPenData object that specifies properties of the graphics pen

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [EmfPlusPenData](../../com.aspose.imaging.fileformats.emf.emfplus.objects/emfpluspendata) |  |

### getBrushObject() {#getBrushObject--}
```
public EmfPlusBrush getBrushObject()
```


Gets or sets an EmfPlusBrush object that specifies a graphics brush associated with the pen

**Returns:**
[EmfPlusBrush](../../com.aspose.imaging.fileformats.emf.emfplus.objects/emfplusbrush)
### setBrushObject(EmfPlusBrush value) {#setBrushObject-com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusBrush-}
```
public void setBrushObject(EmfPlusBrush value)
```


Gets or sets an EmfPlusBrush object that specifies a graphics brush associated with the pen

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [EmfPlusBrush](../../com.aspose.imaging.fileformats.emf.emfplus.objects/emfplusbrush) |  |

