textrangelist-ag凯发旗舰厅
com.spire.presentation.collections
class textrangelist
java.lang.object
com.spire.presentation.collections.textrangelist
- direct known subclasses:
- textrangecollection
public class textrangelist
- extends java.lang.object
represents a collection.
method summary |
int |
append(portionex value)
adds a text range to the end of collection. |
void |
clear()
removes all elements from the collection. |
portionex |
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,
portionex value)
inserts a portion into the collection at the specified index. |
void |
removeat(int index)
removes the element at the specified index of the collection. |
textrangelist
public textrangelist()
getcount
public int getcount()
- gets the number of elements actually contained in the collection.
- returns:
get
public portionex get(int index)
- gets the element at the specified index.
- parameters:
index
-
- returns:
append
public int append(portionex value)
throws documenteditexception
- adds a text range to the end of collection.
- parameters:
value
- the text range
- returns:
- the index at which the text range has been added.
- throws:
documenteditexception
insert
public void insert(int index,
portionex value)
throws documenteditexception
- inserts a portion into the collection at the specified index.
- parameters:
index
- the zero-based index at which portion should be inserted.value
- the portion to insert.
- throws:
documenteditexception
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.