pdflistitemcollection-ag凯发旗舰厅



com.spire.pdf.lists
class pdflistitemcollection

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

public class pdflistitemcollection
extends pdfcollection

represents collection of list items.


constructor summary
pdflistitemcollection()
          initializes a new instance of the class.
pdflistitemcollection(java.lang.string[] items)
          initializes a new instance of the class.
 
method summary
 int add(pdflistitem item)
          adds the specified item.
 int add(pdflistitem item, float itemindent)
          adds the specified item.
 pdflistitem add(java.lang.string text)
          adds the item with a specified text.
 pdflistitem add(java.lang.string text, float itemindent)
          adds the specified text.
 pdflistitem add(java.lang.string text, pdffontbase font)
          adds the specified text.
 pdflistitem add(java.lang.string text, pdffontbase font, float itemindent)
          adds the specified text.
 void clear()
          clears collection.
 pdflistitem get(int index)
          gets the pdflistitem from collection at the specified index.
 int indexof(pdflistitem item)
          determines the index of a specific item in the list.
 void insert(int index, pdflistitem item)
          inserts item at the specified index.
 void insert(int index, pdflistitem item, float itemindent)
          inserts the specified index.
 void remove(pdflistitem item)
          removes the specified item from the list.
 void removeat(int index)
          removes the item at the specified index from the list.
 
methods inherited from class com.spire.pdf.pdfcollection
getcount, getlist
 
constructor detail

pdflistitemcollection

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

pdflistitemcollection

public pdflistitemcollection(java.lang.string[] items)
initializes a new instance of the class.
parameters:
items - a string array that contains items separated by the new line character.
method detail

get

public pdflistitem get(int index)
gets the pdflistitem from collection at the specified index.

add

public int add(pdflistitem item)
adds the specified item.
parameters:
item - the item.
returns:
the item index in collection.

add

public int add(pdflistitem item,
               float itemindent)
adds the specified item.
parameters:
item - the item.
itemindent - the item indent.

add

public pdflistitem add(java.lang.string text)
adds the item with a specified text.
parameters:
text - the text.
returns:

add

public pdflistitem add(java.lang.string text,
                       float itemindent)
adds the specified text.
parameters:
text - the text.
itemindent - the item indent.
returns:
list item.

add

public pdflistitem add(java.lang.string text,
                       pdffontbase font)
adds the specified text.
parameters:
text - the text.
font - the font.
returns:
the item index in collection.

add

public pdflistitem add(java.lang.string text,
                       pdffontbase font,
                       float itemindent)
adds the specified text.
parameters:
text - the text.
font - the font.
itemindent - the item indent.
returns:
list item.

insert

public void insert(int index,
                   pdflistitem item)
inserts item at the specified index.
parameters:
index - the specified index.
item - the item.

insert

public void insert(int index,
                   pdflistitem item,
                   float itemindent)
inserts the specified index.
parameters:
index - the index.
item - the item.
itemindent - the item indent.

remove

public void remove(pdflistitem item)
removes the specified item from the list.
parameters:
item - the specified item.

removeat

public void removeat(int index)
removes the item at the specified index from the list.
parameters:
index - he specified index.

indexof

public int indexof(pdflistitem item)
determines the index of a specific item in the list.
parameters:
item - the item to locate in the list.
returns:
the index of item if found in the list; otherwise, -1.

clear

public void clear()
clears collection.


网站地图