FontSubstitutionCollection
Inheritance: java.lang.Object, com.aspose.pdf.text.FontSubstitutionCollection
All Implemented Interfaces: Iterable < FontSubstitution >
public final class FontSubstitutionCollection extends Object implements Iterable < FontSubstitution >
Represents font substitution strategies collection.
Constructors
| Constructor | Description |
|---|---|
| FontSubstitutionCollection | Initializes collection object |
Methods
| Method | Description |
|---|---|
| add | Adds new font substitution object to the collection. |
| clear | Clears the font substitution collection. |
| contains | Determines whether an element is in the collection. |
| delete | For internal only Deletes the font substitution element. |
| getItem | Gets the font element at the specified index. |
| getSyncRoot | Gets an object that can be used to synchronize access to the collection. |
| isSynchronized | Gets a value indicating whether access to the collection is synchronized (thread safe). |
| iterator | Returns an enumerator for the entire collection. |
| remove | Deletes the font substitution element. |
| size | Gets the number of Font object elements actually contained in the collection. |
FontSubstitutionCollection
public FontSubstitutionCollection()
Initializes collection object
add
Adds new font substitution object to the collection.
clear
public void clear()
Clears the font substitution collection.
contains
Determines whether an element is in the collection.
delete
For internal only Deletes the font substitution element.
getItem
public FontSubstitution getItem(int index)
Gets the font element at the specified index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | Index within the collection. |
Returns: FontSubstitution object.
getSyncRoot
public Object getSyncRoot()
Gets an object that can be used to synchronize access to the collection.
Returns: Object for synchronization
isSynchronized
public boolean isSynchronized()
Gets a value indicating whether access to the collection is synchronized (thread safe).
Returns: boolean value
iterator
public com.aspose.ms.System.Collections.Generic.List.Enumerator< FontSubstitution > iterator()
Returns an enumerator for the entire collection.
Returns: Enumerator object
remove
Deletes the font substitution element.
size
public int size()
Gets the number of Font object elements actually contained in the collection.
Returns: int value