**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 WmfInvertRegion extends WmfObject
```

该 META\_INVERTREGION 记录绘制颜色被反转的区域。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [WmfInvertRegion(WmfGraphicObject region)](#WmfInvertRegion-com.aspose.imaging.fileformats.wmf.objects.WmfGraphicObject-) | 初始化 `WmfInvertRegion` 类的新实例。 |
| [WmfInvertRegion()](#WmfInvertRegion--) | 初始化 `WmfInvertRegion` 类的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getRegionIndex()](#getRegionIndex--) | 获取或设置区域的索引。 |
| [setRegionIndex(int value)](#setRegionIndex-int-) | 获取或设置区域的索引。 |
### WmfInvertRegion(WmfGraphicObject region) {#WmfInvertRegion-com.aspose.imaging.fileformats.wmf.objects.WmfGraphicObject-}
```
public WmfInvertRegion(WmfGraphicObject region)
```


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

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| region | [WmfGraphicObject](../../com.aspose.imaging.fileformats.wmf.objects/wmfgraphicobject) | 该区域。 |

### WmfInvertRegion() {#WmfInvertRegion--}
```
public WmfInvertRegion()
```


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

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


获取或设置区域的索引。

值：区域的索引。

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


获取或设置区域的索引。

值：区域的索引。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int |  |

