com.aspose.pdf.text

Class FontSourceCollection

    • 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<FontSource>
        Returns:
        Enumerator object.
      • copyTo

        public void copyTo(FontSource[] array,
                           int index)

        Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array

        Parameters:
        array - Array of objects which will be copied.
        index - Starting index from which copying will be started.
      • 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.
      • contains

        public boolean contains(FontSource item)

        Determines whether an element is in the collection

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

        public boolean remove(FontSource item)

        Deletes the font source element.

        Parameters:
        item - FontSource object that will be deleted.
        Returns:
        boolean value