pdfstampcollection-ag凯发旗舰厅



com.spire.pdf
class pdfstampcollection

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

public class pdfstampcollection
extends pdfcollection

a collection of stamps that are applied to the page templates.


constructor summary
pdfstampcollection()
          creates a new stamp collection.
 
method summary
 pdfpagetemplateelement add(float x, float y, float width, float height)
          creates a stamp element and adds it to the collection.
 int add(pdfpagetemplateelement template)
          adds a stamp element to the collection.
 void clear()
          cleares the collection.
 boolean contains(pdfpagetemplateelement template)
          checks whether the stamp element exists in the collection.
 pdfpagetemplateelement get(int index)
          gets a stamp element by its index.
 void insert(int index, pdfpagetemplateelement template)
          inserts a stamp element to the collection at the specified position.
 void remove(pdfpagetemplateelement template)
          removes the stamp element from the collection.
 void removeat(int index)
          removes a stamp element from the specified position in the collection.
 
methods inherited from class com.spire.pdf.pdfcollection
getcount, getlist
 
constructor detail

pdfstampcollection

public pdfstampcollection()
creates a new stamp collection.
method detail

get

public pdfpagetemplateelement get(int index)
gets a stamp element by its index.

add

public int add(pdfpagetemplateelement template)
adds a stamp element to the collection.
parameters:
template - the stamp element.
returns:
the index of the stamp element.

add

public pdfpagetemplateelement add(float x,
                                  float y,
                                  float width,
                                  float height)
creates a stamp element and adds it to the collection.
parameters:
x - x co-ordinate of the stamp.
y - y co-ordinate of the stamp.
width - width of the stamp.
height - height of the stamp.
returns:
the created stamp element.

contains

public boolean contains(pdfpagetemplateelement template)
checks whether the stamp element exists in the collection.
parameters:
template - stamp element.
returns:
true - if stamp element exists in the collection, false otherwise.

insert

public void insert(int index,
                   pdfpagetemplateelement template)
inserts a stamp element to the collection at the specified position.
parameters:
index - the index of the stamp in the collection.
template - the stamp element.

remove

public void remove(pdfpagetemplateelement template)
removes the stamp element from the collection.
parameters:
template - the stamp element.

removeat

public void removeat(int index)
removes a stamp element from the specified position in the collection.
parameters:
index - the index of the stamp in the collection.

clear

public void clear()
cleares the collection.


网站地图