pdfattachmentcollection-ag凯发旗舰厅



com.spire.pdf.attachments
class pdfattachmentcollection

java.lang.object
  extended by com.spire.pdf.pdfcollection
      extended by com.spire.pdf.attachments.pdfattachmentcollection
all implemented interfaces:
com.spire.ms.system.collections.ienumerable, ipdfwrapper, java.lang.iterable

public class pdfattachmentcollection
extends pdfcollection
implements ipdfwrapper

represents a collection of the attachment objects.


constructor summary
pdfattachmentcollection()
          initializes a new instance of the class.
pdfattachmentcollection( attachmentdictionary,  table)
           
 
method summary
 int add(pdfattachment attachment)
           
 int add(java.lang.string name, pdfattachment attachment)
          adds the specified attachment.
 void clear()
          clears the collection.
 boolean contains(pdfattachment attachment)
          determines whether
 pdfattachment get(int index)
          gets attachment by its index in the collection.
 int indexof(pdfattachment attachment)
          indexes the of attachment.
 void insert(int index, pdfattachment attachment)
          inserts the specified index.
 void remove(pdfattachment attachment)
          removes the specified attachment.
 void removeat(int index)
          removes attachment at the specified index.
 
methods inherited from class com.spire.pdf.pdfcollection
getcount, getlist
 
constructor detail

pdfattachmentcollection

public pdfattachmentcollection()
initializes a new instance of the class.

pdfattachmentcollection

public pdfattachmentcollection( attachmentdictionary,
                                table)
method detail

get

public pdfattachment get(int index)
gets attachment by its index in the collection.
parameters:
index - index of the attachment.
returns:
attachment object by its index in the collection.

add

public int add(pdfattachment attachment)

add

public int add(java.lang.string name,
               pdfattachment attachment)
adds the specified attachment.
parameters:
attachment - the attachment.
returns:
position of the inserted attachment.

insert

public void insert(int index,
                   pdfattachment attachment)
inserts the specified index.
parameters:
index - the index.
attachment - the attachment.

remove

public void remove(pdfattachment attachment)
removes the specified attachment.
parameters:
attachment - the attachment.

removeat

public void removeat(int index)
removes attachment at the specified index.
parameters:
index - the index.

indexof

public int indexof(pdfattachment attachment)
indexes the of attachment.
parameters:
attachment - the attachment.
returns:
indexes the of attachment.

contains

public boolean contains(pdfattachment attachment)
determines whether
parameters:
attachment - the attachment. if it contains the specified attachment, set to true.

clear

public void clear()
clears the collection.


网站地图