paragraphlist-ag凯发旗舰厅



com.spire.presentation.collections
class paragraphlist

java.lang.object
  extended by com.spire.presentation.collections.paragraphlist
all implemented interfaces:
iactivepresentation, islidecomponent
direct known subclasses:
paragraphcollection

public class paragraphlist
extends java.lang.object
implements islidecomponent

represents a collection of a paragraphs.


constructor summary
paragraphlist()
           
 
method summary
 void addfromhtml(java.lang.string htmltext)
          adds text from specified html string.
 int append(paragraphcollection value)
          adds a content of paragraphs to the end of collection
 int append(paragraphex value)
          adds a paragraph to the end of collection.
 void clear()
          removes all elements from the collection.
 paragraphex get(int index)
          gets the element at the specified index.
 int getcount()
          gets the number of elements actually contained in the collection.
 void insert(int index, paragraphcollection value)
          inserts a content of paragraphexcollection into the collection at the specified index.
 void insert(int index, paragraphex value)
          inserts a paragraph into the collection at the specified index.
 void removeat(int index)
          removes the element at the specified index of the collection.
 
methods inherited from interface com.spire.presentation.islidecomponent
getslide
 
methods inherited from interface com.spire.presentation.iactivepresentation
getpresentation
 
constructor detail

paragraphlist

public paragraphlist()
method detail

addfromhtml

public void addfromhtml(java.lang.string htmltext)
adds text from specified html string.
parameters:
htmltext -

getcount

public int getcount()
gets the number of elements actually contained in the collection.
returns:

get

public paragraphex get(int index)
gets the element at the specified index.
parameters:
index -
returns:

append

public int append(paragraphex value)
           throws documenteditexception
adds a paragraph to the end of collection.
parameters:
value -
returns:
throws:
documenteditexception - the index at which the paragraph has been added.

append

public int append(paragraphcollection value)
adds a content of paragraphs to the end of collection
parameters:
value -
returns:
the index at which the paragraph has been added or -1 if there are nothing to add.

insert

public void insert(int index,
                   paragraphex value)
            throws documenteditexception
inserts a paragraph into the collection at the specified index.
parameters:
index - the zero-based index at which paragraph should be inserted.
value - the paragraph to insert.
throws:
documenteditexception

insert

public void insert(int index,
                   paragraphcollection value)
inserts a content of paragraphexcollection into the collection at the specified index.
parameters:
index - the zero-based index at which paragraphs should be inserted.
value - the paragraphs to insert.

clear

public void clear()
removes all elements from the collection.

removeat

public void removeat(int index)
removes the element at the specified index of the collection.
parameters:
index - the zero-based index of the element to remove.


网站地图