FontSubstitutionCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public final class FontSubstitutionCollection implements Iterable<FontSubstitution>

Represents font substitution strategies collection.

Constructors

ConstructorDescription
FontSubstitutionCollection()Initializes collection object

Methods

MethodDescription
size()Gets the number of Font object elements actually contained in the collection.
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.
add(FontSubstitution fontSubstitution)Adds new font substitution object to the collection.
clear()Clears the font substitution collection.
delete(FontSubstitution fontSubstitution)For internal only
contains(FontSubstitution item)Determines whether an element is in the collection.
remove(FontSubstitution item)Deletes the font substitution element.
getItem(int index)Gets the font element at the specified index.

FontSubstitutionCollection()

public FontSubstitutionCollection()

Initializes collection object

size()

public int size()

Gets the number of Font object elements actually contained in the collection.

Returns: int - int value

getSyncRoot()

public Object getSyncRoot()

Gets an object that can be used to synchronize access to the collection.

Returns: java.lang.Object - Object for synchronization

isSynchronized()

public boolean isSynchronized()

Gets a value indicating whether access to the collection is synchronized (thread safe).

Returns: boolean - boolean value

iterator()

public System.Collections.Generic.List.Enumerator<FontSubstitution> iterator()

Returns an enumerator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.List.Enumerator<com.aspose.pdf.text.FontSubstitution> - Enumerator object

add(FontSubstitution fontSubstitution)

public void add(FontSubstitution fontSubstitution)

Adds new font substitution object to the collection.

Parameters:

ParameterTypeDescription
fontSubstitutionFontSubstitutionFont substitution strategy.

clear()

public void clear()

Clears the font substitution collection.

delete(FontSubstitution fontSubstitution)

public void delete(FontSubstitution fontSubstitution)

For internal only

Deletes the font substitution element.

Parameters:

ParameterTypeDescription
fontSubstitutionFontSubstitutionFontSubstitution object

contains(FontSubstitution item)

public boolean contains(FontSubstitution item)

Determines whether an element is in the collection.

Parameters:

ParameterTypeDescription
itemFontSubstitutionFontSubstitution object to search.

Returns: boolean - True - if element found; otherwise, false.

remove(FontSubstitution item)

public boolean remove(FontSubstitution item)

Deletes the font substitution element.

Parameters:

ParameterTypeDescription
itemFontSubstitutionFontSubstitution object to delete.

Returns: boolean - True - if element removed; otherwise, false.

getItem(int index)

public FontSubstitution getItem(int index)

Gets the font element at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex within the collection.

Returns: FontSubstitution - FontSubstitution object.