com.aspose.pdf.text

Class FontSourceCollection

  • All Implemented Interfaces:
    Iterable


    public final class FontSourceCollection
    extends Object
    implements Iterable
    Represents font sources collection.
    • Field Detail

      • CollectionChanged

        public final PdfEvent<com.aspose.ms.System.EventHandler> CollectionChanged
        CollectionChanged event
    • Constructor Detail

      • FontSourceCollection

        public FontSourceCollection()

        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 element
      • 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(FontSource fontSource)

        Adds new font source object to the collection.

        Parameters:
        fontSource - Font source.
      • clear

        public void clear()

        Clears the font source collection.

      • delete

        public void delete(FontSource fontSource)

        Deletes the font source element.

        Parameters:
        fontSource - FontSource object that will be deleted.
      • getItem

        public FontSource getItem(int index)

        Gets the font element at the specified index.

        Parameters:
        index - Index within the collection.
        Returns:
        Fout source object.