FontSubstitutionCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public final class FontSubstitutionCollection implements Iterable<FontSubstitution>

Represents font substitution strategies collection.

Constructors

Constructor Description
FontSubstitutionCollection() Initializes collection object

Methods

Method Description
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:

Parameter Type Description
fontSubstitution FontSubstitution Font 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:

Parameter Type Description
fontSubstitution FontSubstitution FontSubstitution object

contains(FontSubstitution item)

public boolean contains(FontSubstitution item)

Determines whether an element is in the collection.

Parameters:

Parameter Type Description
item FontSubstitution FontSubstitution 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:

Parameter Type Description
item FontSubstitution FontSubstitution 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:

Parameter Type Description
index int Index within the collection.

Returns: FontSubstitution - FontSubstitution object.