|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.pdf.PdfCollection
com.spire.pdf.annotations.PdfAnnotationCollection
public class PdfAnnotationCollection
Represents collection of objects.
Constructor Summary | |
---|---|
PdfAnnotationCollection()
Initializes a new instance of the class. |
|
PdfAnnotationCollection(PdfNewPage page)
Creates new annotation collection for the specified page. |
Method Summary | |
---|---|
int |
add(PdfAnnotation annotation)
Adds a new annotation to collection. |
void |
clear()
Cleares the collection. |
boolean |
contains(PdfAnnotation annotation)
Searches the collection for the specified annotation. |
PdfAnnotation |
get(int index)
Gets the object at the specified position. |
PdfArray |
getAnnotations()
Gets the annotations array. |
int |
indexOf(PdfAnnotation annotation)
Searches the collection for the specified annotation. |
void |
remove(PdfAnnotation annot)
Removes the element from the collection. |
void |
removeAt(int index)
Removes the element at the specified field. |
Methods inherited from class com.spire.pdf.PdfCollection |
---|
getCount, getList |
Constructor Detail |
---|
public PdfAnnotationCollection()
public PdfAnnotationCollection(PdfNewPage page)
page
- Page which collection is created for.Method Detail |
---|
public PdfAnnotation get(int index)
index
- The index value of the annotation in the collection.
public PdfArray getAnnotations()
public int add(PdfAnnotation annotation)
annotation
- The new annotation to be added to collection.
public void clear()
public boolean contains(PdfAnnotation annotation)
annotation
- The annotation to search for.
public int indexOf(PdfAnnotation annotation)
annotation
- The Annotation to search.
public void removeAt(int index)
index
- The index of the element to remove.public void remove(PdfAnnotation annot)
annot
- The element to remove.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |