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

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

包含一个集合[GradientStop](../../com.aspose.words/gradientstop)对象。

要了解更多信息，请访问**Working with Graphic Elements**文档文章。

您不直接创建此类的实例。使用[Fill.getGradientStops()](../../com.aspose.words/fill\#getGradientStops--)属性以访问填充对象的渐变停止点。
## 方法

| 方法 | 描述 |
| --- | --- |
| [add(GradientStop gradientStop)](#add-com.aspose.words.GradientStop-) | 添加一个指定的[GradientStop](../../com.aspose.words/gradientstop)到一个梯度。 |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [get(int index)](#get-int-) | 得到一个[GradientStop](../../com.aspose.words/gradientstop)集合中的对象。 |
| [getClass()](#getClass--) |  |
| [getCount()](#getCount--) | 获取一个整数值，该值指示集合中的项数。 |
| [hashCode()](#hashCode--) |  |
| [insert(int index, GradientStop gradientStop)](#insert-int-com.aspose.words.GradientStop-) | 插入一个[GradientStop](../../com.aspose.words/gradientstop)到指定索引处的集合。 |
| [iterator()](#iterator--) | 返回循环访问集合的枚举器。 |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [remove(GradientStop gradientStop)](#remove-com.aspose.words.GradientStop-) | 删除指定的[GradientStop](../../com.aspose.words/gradientstop)从集合中。 |
| [removeAt(int index)](#removeAt-int-) | 删除一个[GradientStop](../../com.aspose.words/gradientstop)来自指定索引处的集合。 |
| [set(int index, GradientStop value)](#set-int-com.aspose.words.GradientStop-) | 设置一个[GradientStop](../../com.aspose.words/gradientstop)集合中的对象。 |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### add(GradientStop gradientStop) {#add-com.aspose.words.GradientStop-}
```
public GradientStop add(GradientStop gradientStop)
```


添加一个指定的[GradientStop](../../com.aspose.words/gradientstop)到一个梯度。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| gradientStop | [GradientStop](../../com.aspose.words/gradientstop) |  |

**退货：**
[GradientStop](../../com.aspose.words/gradientstop)
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**参数：**

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

**退货：**
布尔值
### get(int index) {#get-int-}
```
public GradientStop get(int index)
```


得到一个[GradientStop](../../com.aspose.words/gradientstop)集合中的对象。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | int |  |

**退货：**
[GradientStop](../../com.aspose.words/gradientstop) - 一个[GradientStop](../../com.aspose.words/gradientstop)集合中的对象。
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




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


获取一个整数值，该值指示集合中的项数。

**退货：**
int - 一个整数值，指示集合中的项目数。
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**退货：**
整数
### insert(int index, GradientStop gradientStop) {#insert-int-com.aspose.words.GradientStop-}
```
public GradientStop insert(int index, GradientStop gradientStop)
```


插入一个[GradientStop](../../com.aspose.words/gradientstop)到指定索引处的集合。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | int |  |
| gradientStop | [GradientStop](../../com.aspose.words/gradientstop) |  |

**退货：**
[GradientStop](../../com.aspose.words/gradientstop)
### iterator() {#iterator--}
```
public Iterator iterator()
```


返回循环访问集合的枚举器。

**退货：**
java.util.迭代器
### notify() {#notify--}
```
public final native void notify()
```




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




### remove(GradientStop gradientStop) {#remove-com.aspose.words.GradientStop-}
```
public boolean remove(GradientStop gradientStop)
```


删除指定的[GradientStop](../../com.aspose.words/gradientstop)从集合中。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| gradientStop | [GradientStop](../../com.aspose.words/gradientstop) |  |

**退货：**
boolean - 如果梯度停止被成功移除则为 True，否则为 false。
### removeAt(int index) {#removeAt-int-}
```
public GradientStop removeAt(int index)
```


删除一个[GradientStop](../../com.aspose.words/gradientstop)来自指定索引处的集合。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | int |  |

**退货：**
[GradientStop](../../com.aspose.words/gradientstop) - 删除[GradientStop](../../com.aspose.words/gradientstop).
### set(int index, GradientStop value) {#set-int-com.aspose.words.GradientStop-}
```
public void set(int index, GradientStop value)
```


设置一个[GradientStop](../../com.aspose.words/gradientstop)集合中的对象。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | int |  |
| value | [GradientStop](../../com.aspose.words/gradientstop) | 一个[GradientStop](../../com.aspose.words/gradientstop)集合中的对象。 |

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