com.aspose.pdf.text

Class FontSubstitutionCollection

    • 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.Generic.List.Enumerator<FontSubstitution> iterator()

        Returns an enumerator for the entire collection.

        Specified by:
        iterator in interface Iterable<FontSubstitution>
        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
      • contains

        public boolean contains(FontSubstitution item)

        Determines whether an element is in the collection

        Parameters:
        item - FontSubstitution object to search.
        Returns:
        boolean value
      • remove

        public boolean remove(FontSubstitution item)

        Deletes the font substitution element.

        Parameters:
        item - FontSubstitution object to delete.
        Returns:
        boolean value
      • getItem

        public FontSubstitution getItem(int index)

        Gets the font element at the specified index.

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