**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.emf.MetaObject](../../com.aspose.imaging.fileformats.emf/metaobject), [com.aspose.imaging.fileformats.wmf.objects.WmfObject](../../com.aspose.imaging.fileformats.wmf.objects/wmfobject)
```
public class WmfPaintRegion extends WmfObject
```

The META\_PAINTREGION record paints the specified region by using the brush that is defined in the playback device context.
## Constructors

| Constructor | Description |
| --- | --- |
| [WmfPaintRegion()](#WmfPaintRegion--) | Initializes a new instance of the `WmfSelectClipRegion` class. |
| [WmfPaintRegion(WmfGraphicObject region)](#WmfPaintRegion-com.aspose.imaging.fileformats.wmf.objects.WmfGraphicObject-) | Initializes a new instance of the `WmfSelectClipRegion` class. |
## Methods

| Method | Description |
| --- | --- |
| [getRegionIndex()](#getRegionIndex--) | Gets or sets the index of the region. |
| [setRegionIndex(int value)](#setRegionIndex-int-) | Gets or sets the index of the region. |
### WmfPaintRegion() {#WmfPaintRegion--}
```
public WmfPaintRegion()
```


Initializes a new instance of the `WmfSelectClipRegion` class.

### WmfPaintRegion(WmfGraphicObject region) {#WmfPaintRegion-com.aspose.imaging.fileformats.wmf.objects.WmfGraphicObject-}
```
public WmfPaintRegion(WmfGraphicObject region)
```


Initializes a new instance of the `WmfSelectClipRegion` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| region | [WmfGraphicObject](../../com.aspose.imaging.fileformats.wmf.objects/wmfgraphicobject) | The region. |

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


Gets or sets the index of the region.

Value: The index of the region.

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


Gets or sets the index of the region.

Value: The index of the region.

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

