Paragraphs

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable, com.aspose.ms.System.ICloneable

public class Paragraphs implements Iterable<BaseParagraph>, System.ICloneable

This class represents paragraph collection.

Constructors

Constructor Description
Paragraphs()

Methods

Method Description
add(BaseParagraph paragraph) Add paragraph to collection.
getRange(int index, int count) Remove paragraphs range.
removeRange(int index, int count) Remove paragraphs range.
remove(BaseParagraph paragraph) Remove paragraph from collection.
insert(int index, BaseParagraph paragraph) Insert paragraph to collection.
getCount() Get paragraphs count.
clear() Clear paragraphs.
insertRange(int index, System.Collections.Generic.List collection) Inserts the elements of a collection into the list at the specified index.
get_Item(int index) Gets paragraph from collection.
set_Item(int index, BaseParagraph value) Sets paragraph to collection.
iterator()
deepClone() Clones a new Clone object.

Paragraphs()

public Paragraphs()

add(BaseParagraph paragraph)

public void add(BaseParagraph paragraph)

Add paragraph to collection.

Parameters:

Parameter Type Description
paragraph BaseParagraph The paragraph.

getRange(int index, int count)

public Paragraphs getRange(int index, int count)

Remove paragraphs range.

Parameters:

Parameter Type Description
index int The first paragraph index.
count int The paragraphs count.

Returns: Paragraphs - The paragraphs collection

removeRange(int index, int count)

public void removeRange(int index, int count)

Remove paragraphs range.

Parameters:

Parameter Type Description
index int The first paragraph index.
count int The paragraphs count.

remove(BaseParagraph paragraph)

public void remove(BaseParagraph paragraph)

Remove paragraph from collection.

Parameters:

Parameter Type Description
paragraph BaseParagraph BaseParagraph object

insert(int index, BaseParagraph paragraph)

public void insert(int index, BaseParagraph paragraph)

Insert paragraph to collection.

Parameters:

Parameter Type Description
index int The index for paragraph.
paragraph BaseParagraph The paragraph.

getCount()

public int getCount()

Get paragraphs count.

Returns: int - int value

clear()

public void clear()

Clear paragraphs.

insertRange(int index, System.Collections.Generic.List collection)

public void insertRange(int index, System.Collections.Generic.List<BaseParagraph> collection)

Inserts the elements of a collection into the list at the specified index.

Parameters:

Parameter Type Description
index int int value (Index)
collection com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.BaseParagraph> list of BaseParagraph objects (Collection)

get_Item(int index)

public BaseParagraph get_Item(int index)

Gets paragraph from collection.

Parameters:

Parameter Type Description
index int The paragraph index.

Returns: BaseParagraph - BaseParagraph object

set_Item(int index, BaseParagraph value)

public void set_Item(int index, BaseParagraph value)

Sets paragraph to collection.

Parameters:

Parameter Type Description
index int The paragraph index.
value BaseParagraph BaseParagraph object

iterator()

public System.Collections.IEnumerator iterator()

Returns: com.aspose.ms.System.Collections.IEnumerator

deepClone()

public Object deepClone()

Clones a new Clone object.

Returns: java.lang.Object - The new Clone object.