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

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

代表集合[VbaModule](../../com.aspose.words/vbamodule)对象。

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

| 方法 | 描述 |
| --- | --- |
| [add(VbaModule vbaModule)](#add-com.aspose.words.VbaModule-) | 将模块添加到集合中。 |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [get(int index)](#get-int-) | 检索一个[VbaModule](../../com.aspose.words/vbamodule)按索引的对象。 |
| [get(String name)](#get-java.lang.String-) | 检索一个[VbaModule](../../com.aspose.words/vbamodule)按名称查找对象，如果找不到则为 Null。 |
| [getClass()](#getClass--) |  |
| [getCount()](#getCount--) | 返回集合中 VBA 模块的数量。 |
| [hashCode()](#hashCode--) |  |
| [iterator()](#iterator--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [remove(VbaModule module)](#remove-com.aspose.words.VbaModule-) | 从集合中移除指定的模块。 |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### add(VbaModule vbaModule) {#add-com.aspose.words.VbaModule-}
```
public void add(VbaModule vbaModule)
```


将模块添加到集合中。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| vbaModule | [VbaModule](../../com.aspose.words/vbamodule) |  |

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




**参数：**

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

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


检索一个[VbaModule](../../com.aspose.words/vbamodule)按索引的对象。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | int | 要检索的模块的从零开始的索引。 |

**退货：**
[VbaModule](../../com.aspose.words/vbamodule) - 相应的[VbaModule](../../com.aspose.words/vbamodule)价值。
### get(String name) {#get-java.lang.String-}
```
public VbaModule get(String name)
```


检索一个[VbaModule](../../com.aspose.words/vbamodule)按名称查找对象，如果找不到则为 Null。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| name | java.lang.String |  |

**退货：**
[VbaModule](../../com.aspose.words/vbamodule) - 相应的[VbaModule](../../com.aspose.words/vbamodule)价值。
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




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


返回集合中 VBA 模块的数量。

**退货：**
int - 集合中的 VBA 模块数。
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**退货：**
整数
### iterator() {#iterator--}
```
public Iterator iterator()
```




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




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




### remove(VbaModule module) {#remove-com.aspose.words.VbaModule-}
```
public void remove(VbaModule module)
```


从集合中移除指定的模块。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| module | [VbaModule](../../com.aspose.words/vbamodule) | 要删除的模块。 |

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