public class Paragraphs extends Object implements Iterable<BaseParagraph>, com.aspose.ms.System.ICloneable
This class represents paragraph collection.
Constructor and Description |
---|
Paragraphs() |
Modifier and Type | Method and Description |
---|---|
void |
add(BaseParagraph paragraph)
Add paragraph to collection.
|
void |
clear()
Clear paragraphs.
|
Object |
deepClone()
Clones a new
Clone object. |
BaseParagraph |
get_Item(int index)
Gets paragraph from collection.
|
int |
getCount()
Get paragraphs count.
|
Paragraphs |
getRange(int index,
int count)
Remove paragraphs range.
|
void |
insert(int index,
BaseParagraph paragraph)
Insert paragraph to collection.
|
void |
insertRange(int index,
com.aspose.ms.System.Collections.Generic.List<BaseParagraph> collection)
Inserts the elements of a collection into the list at the specified index.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator() |
void |
remove(BaseParagraph paragraph)
Remove paragraph from collection.
|
void |
removeRange(int index,
int count)
Remove paragraphs range.
|
void |
set_Item(int index,
BaseParagraph value)
Sets paragraph to collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void add(BaseParagraph paragraph)
Add paragraph to collection.
paragraph
- The paragraph.public Paragraphs getRange(int index, int count)
Remove paragraphs range.
index
- The first paragraph index.count
- The paragraphs count.public void removeRange(int index, int count)
Remove paragraphs range.
index
- The first paragraph index.count
- The paragraphs count.public void remove(BaseParagraph paragraph)
paragraph
- BaseParagraph objectpublic void insert(int index, BaseParagraph paragraph)
Insert paragraph to collection.
index
- The index for paragraph.paragraph
- The paragraph.public int getCount()
public void clear()
public void insertRange(int index, com.aspose.ms.System.Collections.Generic.List<BaseParagraph> collection)
Inserts the elements of a collection into the list at the specified index.
index
- int valuecollection
- list of BaseParagraph objectspublic BaseParagraph get_Item(int index)
Gets paragraph from collection.
index
- The paragraph index.public void set_Item(int index, BaseParagraph value)
Sets paragraph to collection.
index
- The paragraph index.value
- BaseParagraph objectpublic com.aspose.ms.System.Collections.IEnumerator iterator()
iterator
in interface Iterable<BaseParagraph>
public Object deepClone()
Clones a new Clone
object.
deepClone
in interface com.aspose.ms.System.ICloneable
Clone
object.