Paragraphs
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.Paragraphs
All Implemented Interfaces: com.aspose.ms.System.ICloneable, Iterable < BaseParagraph >
public class Paragraphs extends Object implements Iterable < BaseParagraph >, com.aspose.ms.System.ICloneable
This class represents paragraph collection.
Constructors
| Constructor | Description |
|---|---|
| Paragraphs |
Methods
| Method | Description |
|---|---|
| add | Add paragraph to collection. |
| clear | Clear paragraphs. |
| deepClone | Clones a new {@code Clone} object. |
| get_Item | Gets paragraph from collection. |
| getCount | Get paragraphs count. |
| getRange | Remove paragraphs range. |
| insert | Insert paragraph to collection. |
| insertRange | Inserts the elements of a collection into the list at the specified index. |
| iterator | |
| remove | Remove paragraph from collection. |
| removeRange | Remove paragraphs range. |
| set_Item | Sets paragraph to collection. |
Paragraphs
public Paragraphs()
add
Add paragraph to collection.
clear
public void clear()
Clear paragraphs.
deepClone
public Object deepClone()
Clones a new {@code Clone} object.
Returns: The new {@code Clone} object.
get_Item
public BaseParagraph get_Item(int index)
Gets paragraph from collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | The paragraph index. |
Returns: BaseParagraph object
getCount
public int getCount()
Get paragraphs count.
Returns: int value
getRange
public Paragraphs getRange(int index, int count)
Remove paragraphs range.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | The first paragraph index. | |
| count | The paragraphs count. |
Returns: The paragraphs collection
insert
Insert paragraph to collection.
insertRange
Inserts the elements of a collection into the list at the specified index.
iterator
public com.aspose.ms.System.Collections.IEnumerator iterator()
remove
Remove paragraph from collection.
removeRange
public void removeRange(int index, int count)
Remove paragraphs range.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | The first paragraph index. | |
| count | The paragraphs count. |
set_Item
Sets paragraph to collection.