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

ConstructorDescription
Paragraphs()

Methods

MethodDescription
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:

ParameterTypeDescription
paragraphBaseParagraphThe paragraph.

getRange(int index, int count)

public Paragraphs getRange(int index, int count)

Remove paragraphs range.

Parameters:

ParameterTypeDescription
indexintThe first paragraph index.
countintThe paragraphs count.

Returns: Paragraphs - The paragraphs collection

removeRange(int index, int count)

public void removeRange(int index, int count)

Remove paragraphs range.

Parameters:

ParameterTypeDescription
indexintThe first paragraph index.
countintThe paragraphs count.

remove(BaseParagraph paragraph)

public void remove(BaseParagraph paragraph)

Remove paragraph from collection.

Parameters:

ParameterTypeDescription
paragraphBaseParagraphBaseParagraph object

insert(int index, BaseParagraph paragraph)

public void insert(int index, BaseParagraph paragraph)

Insert paragraph to collection.

Parameters:

ParameterTypeDescription
indexintThe index for paragraph.
paragraphBaseParagraphThe 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:

ParameterTypeDescription
indexintint value (Index)
collectioncom.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:

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

ParameterTypeDescription
indexintThe paragraph index.
valueBaseParagraphBaseParagraph 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.