pdfbookmarkcollection-ag凯发旗舰厅



com.spire.pdf.bookmarks
class pdfbookmarkcollection

java.lang.object
  extended by com.spire.pdf.bookmarks.pdfbookmarkcollection
all implemented interfaces:
com.spire.ms.system.collections.ienumerable, ipdfwrapper, java.lang.iterable
direct known subclasses:
pdfbookmark

public class pdfbookmarkcollection
extends java.lang.object
implements ipdfwrapper, com.spire.ms.system.collections.ienumerable

this class plays two roles: it's a base class for all bookmarks and it's a root of a bookmarks tree.


constructor summary
pdfbookmarkcollection()
           
pdfbookmarkcollection( dictionary,  crosstable)
           
 
method summary
 pdfbookmark add(java.lang.string title)
          creates and adds an outline.
 void clear()
          removes all the bookmark from the document.
 boolean contains(pdfbookmark outline)
          determines whether the specified outline is a direct descendant of the outline base.
 pdfbookmark get(int index)
          gets the at the specified index.
 int getcount()
          gets number of the elements in the collection.
 pdfbookmark insert(int index, java.lang.string title)
          inserts a new outline at the specified index.
 void remove(java.lang.string title)
          removes the specified bookmark from the document.
 void removeat(int index)
          removes the specified bookmark from the document at the specified index.
 
constructor detail

pdfbookmarkcollection

public pdfbookmarkcollection()

pdfbookmarkcollection

public pdfbookmarkcollection( dictionary,
                              crosstable)
method detail

getcount

public int getcount()
gets number of the elements in the collection.

get

public pdfbookmark get(int index)
gets the at the specified index.

add

public pdfbookmark add(java.lang.string title)
creates and adds an outline.
parameters:
title - the title of the new outline.
returns:
the outline created.

contains

public boolean contains(pdfbookmark outline)
determines whether the specified outline is a direct descendant of the outline base.
parameters:
outline - the outline. true if the specified outline is a direct descendant of the outline base; otherwise, false.

remove

public void remove(java.lang.string title)
removes the specified bookmark from the document.
parameters:
title - the title of the outline.

removeat

public void removeat(int index)
removes the specified bookmark from the document at the specified index.
parameters:
index - the index.

clear

public void clear()
removes all the bookmark from the document.

insert

public pdfbookmark insert(int index,
                          java.lang.string title)
inserts a new outline at the specified index.
parameters:
index - the index.
title - the title of the new outline.
returns:
the new outline.


网站地图