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

**所有已实现的接口：**
java.lang.Iterable
```
public final class FontSubstitutionCollection implements Iterable<FontSubstitution>
```

表示字体替换策略集合。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [FontSubstitutionCollection()](#FontSubstitutionCollection--) | 初始化集合对象 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [add(FontSubstitution fontSubstitution)](#add-com.aspose.pdf.text.FontSubstitution-) | 将新的字体替换对象添加到集合中。 |
| [clear()](#clear--) | 清除字体替换集合。 |
| [contains(FontSubstitution item)](#contains-com.aspose.pdf.text.FontSubstitution-) | 确定元素是否在集合中。 |
| [delete(FontSubstitution fontSubstitution)](#delete-com.aspose.pdf.text.FontSubstitution-) | 仅供内部使用 |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getItem(int index)](#getItem-int-) | 获取指定索引处的字体元素。 |
| [getSyncRoot()](#getSyncRoot--) | 获取可用于同步对集合的访问的对象。 |
| [hashCode()](#hashCode--) |  |
| [isSynchronized()](#isSynchronized--) | 获取一个值，该值指示对集合的访问是否同步（线程安全）。 |
| [iterator()](#iterator--) | 返回整个集合的枚举器。 |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [remove(FontSubstitution item)](#remove-com.aspose.pdf.text.FontSubstitution-) | 删除字体替换元素。 |
| [size()](#size--) | 获取集合中实际包含的 Font 对象元素的数量。 |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### FontSubstitutionCollection() {#FontSubstitutionCollection--}
```
public FontSubstitutionCollection()
```


初始化集合对象

### add(FontSubstitution fontSubstitution) {#add-com.aspose.pdf.text.FontSubstitution-}
```
public void add(FontSubstitution fontSubstitution)
```


将新的字体替换对象添加到集合中。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| fontSubstitution | [FontSubstitution](../../com.aspose.pdf.text/fontsubstitution) | 字体替换策略。 |

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


清除字体替换集合。

### contains(FontSubstitution item) {#contains-com.aspose.pdf.text.FontSubstitution-}
```
public boolean contains(FontSubstitution item)
```


确定元素是否在集合中。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| item | [FontSubstitution](../../com.aspose.pdf.text/fontsubstitution) | 要搜索的 FontSubstitution 对象。 |

**退货：**
boolean - True - 如果找到元素；否则，假的。
### delete(FontSubstitution fontSubstitution) {#delete-com.aspose.pdf.text.FontSubstitution-}
```
public void delete(FontSubstitution fontSubstitution)
```


仅供内部使用

删除字体替换元素。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| fontSubstitution | [FontSubstitution](../../com.aspose.pdf.text/fontsubstitution) | 字体替换对象 |

### 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<?>
### getItem(int index) {#getItem-int-}
```
public FontSubstitution getItem(int index)
```


获取指定索引处的字体元素。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | int | 集合中的索引。 |

**退货：**
[FontSubstitution](../../com.aspose.pdf.text/fontsubstitution) 字体替换对象。
### getSyncRoot() {#getSyncRoot--}
```
public Object getSyncRoot()
```


获取可用于同步对集合的访问的对象。

**退货：**
java.lang.Object - 同步对象
### hashCode() {#hashCode--}
```
public native int hashCode()
```




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


获取一个值，该值指示对集合的访问是否同步（线程安全）。

**退货：**
boolean - 布尔值
### iterator() {#iterator--}
```
public System.Collections.Generic.List.Enumerator<FontSubstitution> iterator()
```


返回整个集合的枚举器。

**退货：**
com.aspose.ms.System.Collections.Generic.List.Enumerator<com.aspose.pdf.text.FontSubstitution> - 枚举器对象
### notify() {#notify--}
```
public final native void notify()
```




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




### remove(FontSubstitution item) {#remove-com.aspose.pdf.text.FontSubstitution-}
```
public boolean remove(FontSubstitution item)
```


删除字体替换元素。

**参数：**

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| item | [FontSubstitution](../../com.aspose.pdf.text/fontsubstitution) | 要删除的 FontSubstitution 对象。 |

**退货：**
boolean - True - 如果元素被移除；否则，假的。
### size() {#size--}
```
public int size()
```


获取集合中实际包含的 Font 对象元素的数量。

**退货：**
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 |  |
