Paragraphs

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

ConstructorDescription
Paragraphs

Methods

MethodDescription
addAdd paragraph to collection.
clearClear paragraphs.
deepCloneClones a new {@code Clone} object.
get_ItemGets paragraph from collection.
getCountGet paragraphs count.
getRangeRemove paragraphs range.
insertInsert paragraph to collection.
insertRangeInserts the elements of a collection into the list at the specified index.
iterator
removeRemove paragraph from collection.
removeRangeRemove paragraphs range.
set_ItemSets 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:

ParameterTypeDescription
indexThe 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:

ParameterTypeDescription
indexThe first paragraph index.
countThe 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:

ParameterTypeDescription
indexThe first paragraph index.
countThe paragraphs count.

set_Item

Sets paragraph to collection.