
**遗产：**
java.lang.Object, [com.aspose.words.InternableComplexAttr](../../com.aspose.words/internablecomplexattr)

**所有已实现的接口：**
java.lang.Cloneable
```
public class Shading extends InternableComplexAttr implements Cloneable
```

包含对象的着色属性。

要了解更多信息，请访问**Programming with Documents**文档文章。
## 方法

| 方法 | 描述 |
| --- | --- |
| [clearFormatting()](#clearFormatting--) | 移除对象的阴影。 |
| [equals(Shading rhs)](#equals-com.aspose.words.Shading-) | 确定指定 Shading 的值是否与当前 Shading 相等。 |
| [equals(Object obj)](#equals-java.lang.Object-) | 确定指定对象的值是否与当前对象相等。 |
| [getBackgroundPatternColor()](#getBackgroundPatternColor--) | 获取应用于 Shading 对象背景的颜色。 |
| [getClass()](#getClass--) |  |
| [getForegroundPatternColor()](#getForegroundPatternColor--) | 获取应用于 Shading 对象前景的颜色。 |
| [getTexture()](#getTexture--) | 获取着色纹理。 |
| [hashCode()](#hashCode--) |  |
| [isInheritedComplexAttr()](#isInheritedComplexAttr--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setBackgroundPatternColor(Color value)](#setBackgroundPatternColor-java.awt.Color-) | 设置应用于 Shading 对象背景的颜色。 |
| [setForegroundPatternColor(Color value)](#setForegroundPatternColor-java.awt.Color-) | 设置应用于 Shading 对象前景的颜色。 |
| [setTexture(int value)](#setTexture-int-) | 设置着色纹理。 |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### clearFormatting() {#clearFormatting--}
```
public void clearFormatting()
```


移除对象的阴影。

### equals(Shading rhs) {#equals-com.aspose.words.Shading-}
```
public boolean equals(Shading rhs)
```


确定指定 Shading 的值是否与当前 Shading 相等。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| rhs | [Shading](../../com.aspose.words/shading) |  |

**退货：**
布尔值
### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```


确定指定对象的值是否与当前对象相等。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| obj | java.lang.Object |  |

**退货：**
布尔值
### getBackgroundPatternColor() {#getBackgroundPatternColor--}
```
public Color getBackgroundPatternColor()
```


获取应用于 Shading 对象背景的颜色。

**退货：**
java.awt.Color - 应用于 Shading 对象背景的颜色。
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**退货：**
java.lang.Class<?>
### getForegroundPatternColor() {#getForegroundPatternColor--}
```
public Color getForegroundPatternColor()
```


获取应用于 Shading 对象前景的颜色。

**退货：**
java.awt.Color - 应用于 Shading 对象前景的颜色。
### getTexture() {#getTexture--}
```
public int getTexture()
```


获取着色纹理。

**退货：**
 int - 着色纹理。返回值是其中之一[TextureIndex](../../com.aspose.words/textureindex)常数。
### hashCode() {#hashCode--}
```
public int hashCode()
```




**退货：**
整数
### isInheritedComplexAttr() {#isInheritedComplexAttr--}
```
public boolean isInheritedComplexAttr()
```




**退货：**
布尔值
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setBackgroundPatternColor(Color value) {#setBackgroundPatternColor-java.awt.Color-}
```
public void setBackgroundPatternColor(Color value)
```


设置应用于 Shading 对象背景的颜色。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| value | java.awt.Color | 应用于 Shading 对象背景的颜色。 |

### setForegroundPatternColor(Color value) {#setForegroundPatternColor-java.awt.Color-}
```
public void setForegroundPatternColor(Color value)
```


设置应用于 Shading 对象前景的颜色。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| value | java.awt.Color | 应用于 Shading 对象前景的颜色。 |

### setTexture(int value) {#setTexture-int-}
```
public void setTexture(int value)
```


设置着色纹理。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| value | int | 阴影纹理。该值必须是其中之一[TextureIndex](../../com.aspose.words/textureindex)常数。 |

### toString() {#toString--}
```
public String toString()
```




**退货：**
java.lang.字符串
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |
