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

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

表示自定义 XML 属性或智能标记属性的集合。

要了解更多信息，请访问**Structured Document Tags or Content Control**文档文章。

项目是[CustomXmlProperty](../../com.aspose.words/customxmlproperty)对象。
## 方法

| 方法 | 描述 |
| --- | --- |
| [add(CustomXmlProperty property)](#add-com.aspose.words.CustomXmlProperty-) | 向集合中添加一个属性。 |
| [clear()](#clear--) | 从集合中移除所有元素。 |
| [contains(String name)](#contains-java.lang.String-) | 确定集合是否包含具有给定名称的属性。 |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [get(int index)](#get-int-) | 获取指定索引处的属性。 |
| [get(String name)](#get-java.lang.String-) | 提供对集合项的访问。 |
| [getClass()](#getClass--) |  |
| [getCount()](#getCount--) | 获取集合中包含的元素数。 |
| [hashCode()](#hashCode--) |  |
| [indexOfKey(String name)](#indexOfKey-java.lang.String-) | 返回集合中指定属性的从零开始的索引。 |
| [iterator()](#iterator--) | 返回一个迭代器对象，该对象可用于迭代集合中的所有项目。 |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [remove(String name)](#remove-java.lang.String-) | 从集合中移除具有指定名称的属性。 |
| [removeAt(int index)](#removeAt-int-) | 删除指定索引处的属性。 |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### add(CustomXmlProperty property) {#add-com.aspose.words.CustomXmlProperty-}
```
public void add(CustomXmlProperty property)
```


向集合中添加一个属性。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| property | [CustomXmlProperty](../../com.aspose.words/customxmlproperty) | 要添加的属性。 |

### clear() {#clear--}
```
public void clear()
```


从集合中移除所有元素。

### contains(String name) {#contains-java.lang.String-}
```
public boolean contains(String name)
```


确定集合是否包含具有给定名称的属性。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| name | java.lang.String | 要查找的属性的区分大小写的名称。 |

**退货：**
boolean - 如果在集合中找到该项目则为真；否则，假的。
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**参数：**

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

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


获取指定索引处的属性。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | int | 属性的从零开始的索引。 |

**退货：**
[CustomXmlProperty](../../com.aspose.words/customxmlproperty) - 指定索引处的属性。
### get(String name) {#get-java.lang.String-}
```
public CustomXmlProperty get(String name)
```


提供对集合项的访问。获取具有指定名称的属性。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| name | java.lang.String | 要查找的属性的区分大小写的名称。 |

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




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


获取集合中包含的元素数。

**退货：**
int - 集合中包含的元素数。
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**退货：**
整数
### indexOfKey(String name) {#indexOfKey-java.lang.String-}
```
public int indexOfKey(String name)
```


返回集合中指定属性的从零开始的索引。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| name | java.lang.String | 属性的区分大小写的名称。 |

**退货：**
int - 从零开始的索引。如果未找到，则为负值。
### iterator() {#iterator--}
```
public Iterator iterator()
```


返回一个迭代器对象，该对象可用于迭代集合中的所有项目。

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




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




### remove(String name) {#remove-java.lang.String-}
```
public void remove(String name)
```


从集合中移除具有指定名称的属性。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| name | java.lang.String | 属性的区分大小写的名称。 |

### removeAt(int index) {#removeAt-int-}
```
public void removeAt(int index)
```


删除指定索引处的属性。

**参数：**

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

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