
**遗产：**
java.lang.Object

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

表示图表图例属性。

要了解更多信息，请访问**Working with Charts**文档文章。
## 构造器

| 构造函数 | 描述 |
| --- | --- |
| [ChartLegend()](#ChartLegend--) | 初始化一个新的实例[ChartLegend](../../com.aspose.words/chartlegend)班级。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getLegendEntries()](#getLegendEntries--) | 返回父图表的所有系列和趋势线的图例条目集合。 |
| [getOverlay()](#getOverlay--) | 确定是否允许其他图表元素与图例重叠。 |
| [getPosition()](#getPosition--) | 指定图例在图表上的位置。 |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setOverlay(boolean value)](#setOverlay-boolean-) | 确定是否允许其他图表元素与图例重叠。 |
| [setPosition(int value)](#setPosition-int-) | 指定图例在图表上的位置。 |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### ChartLegend() {#ChartLegend--}
```
public ChartLegend()
```


初始化一个新的实例[ChartLegend](../../com.aspose.words/chartlegend)班级。

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**参数：**

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

**退货：**
布尔值
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




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


返回父图表的所有系列和趋势线的图例条目集合。

**退货：**
[ChartLegendEntryCollection](../../com.aspose.words/chartlegendentrycollection) - 父图表所有系列和趋势线的图例条目集合。
### getOverlay() {#getOverlay--}
```
public boolean getOverlay()
```


确定是否允许其他图表元素与图例重叠。默认值为假。

**退货：**
boolean - 相应的布尔值。
### getPosition() {#getPosition--}
```
public int getPosition()
```


指定图例在图表上的位置。默认值为[LegendPosition.RIGHT](../../com.aspose.words/legendposition\#RIGHT).

**退货：**
int - 相应的 int 值。返回值是其中之一[LegendPosition](../../com.aspose.words/legendposition)常数。
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**退货：**
整数
### notify() {#notify--}
```
public final native void notify()
```




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




### setOverlay(boolean value) {#setOverlay-boolean-}
```
public void setOverlay(boolean value)
```


确定是否允许其他图表元素与图例重叠。默认值为假。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| value | boolean | 对应的布尔值。 |

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


指定图例在图表上的位置。默认值为[LegendPosition.RIGHT](../../com.aspose.words/legendposition\#RIGHT).

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| value | int | 对应的int值。该值必须是其中之一[LegendPosition](../../com.aspose.words/legendposition)常数。 |

### 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 |  |
