com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class XFormCollection

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, Iterable


    public final class XFormCollection
    extends Object
    implements com.aspose.ms.System.Collections.ICollection

    Class represents collection of XFormCollection.

    • Method Detail

      • size

        public int size()

        Gets count of XForms in collection.

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection
        Returns:
        int value
      • isSynchronized

        public boolean isSynchronized()

        Returns true if object is synchronized.

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection
        Returns:
        boolean
      • getSyncRoot

        public Object getSyncRoot()

        Synchronization object.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection
        Returns:
        Object
      • add

        public void add(XForm xform)

        Adds new XForm into collection.

        Parameters:
        xform - XForm to add into collection
      • delete

        public void delete(int index)

        Delete XForm from collectin

        Parameters:
        index - Index of XForm which must be deleted
      • delete

        public void delete()

        Deletes all XForms from collection.

      • copyTo

        public void copyTo(com.aspose.ms.System.Array array,
                           int index)

        Copies XFormCollection into collection.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection
        Parameters:
        array - Array of XForm to be copied
        index - Index where XFormCollection will be copied
      • iterator

        public com.aspose.ms.System.Collections.IEnumerator iterator()

        Returns collection enumerator.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable
        Specified by:
        iterator in interface Iterable
        Returns:
        Enumerator for collection
      • delete

        public void delete(String name)

        Deletes XForm from collection by form name.

        Parameters:
        name - Name of XForm to be deleted.
      • get_Item

        public XForm get_Item(int index)

        Returns XForm by index.

        Parameters:
        index - Index of XFormCollection. XForms numbering is started from 1
        Returns:
        Retreived XForm
      • get_Item

        public XForm get_Item(String name)

        Returns XForm by its name. Exception is thrown if XForm with specified name is not found.

        Parameters:
        name - Name of XForm
        Returns:
        XForm object
      • getFormName

        public String getFormName(XForm form)

        Returns name of the form in this form collection

        Parameters:
        form - Form which name is searhced
        Returns:
        Form name in the collection; Null if form is not contained in the colleciton
      • hasForm

        public boolean hasForm(String formName)