com.aspose.pdf.text

Class FontSubstitutionCollection

  • All Implemented Interfaces:
    Iterable


    public final class FontSubstitutionCollection
    extends Object
    implements Iterable
    Represents font substitution strategies collection.
    • Constructor Detail

      • FontSubstitutionCollection

        public FontSubstitutionCollection()

        Initializes collection object

    • Method Detail

      • size

        public int size()

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

        Returns:
        int value
      • 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.IEnumerator iterator()

        Returns an enumerator for the entire collection.

        Specified by:
        iterator in interface Iterable
        Returns:
        Enumerator object
      • add

        public void add(FontSubstitution fontSubstitution)

        Adds new font substitution object to the collection.

        Parameters:
        fontSubstitution - Font substitution strategy.
      • clear

        public void clear()

        Clears the font substitution collection.

      • delete

        public void delete(FontSubstitution fontSubstitution)
        For internal only

        Deletes the font substitution element.

        Parameters:
        fontSubstitution - FontSubstitution object
      • getItem

        public FontSubstitution getItem(int index)

        Gets the font element at the specified index.

        Parameters:
        index - Index within the collection.
        Returns:
        FontSubstitution object.