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

ConstructorDescription
FontSubstitutionCollectionInitializes collection object

Methods

MethodDescription
addAdds new font substitution object to the collection.
clearClears the font substitution collection.
containsDetermines whether an element is in the collection.
deleteFor internal only Deletes the font substitution element.
getItemGets the font element at the specified index.
getSyncRootGets an object that can be used to synchronize access to the collection.
isSynchronizedGets a value indicating whether access to the collection is synchronized (thread safe).
iteratorReturns an enumerator for the entire collection.
removeDeletes the font substitution element.
sizeGets 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:

ParameterTypeDescription
indexIndex 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