TextFragmentCollection

Inheritance: java.lang.Object, com.aspose.pdf.TextFragmentCollection

All Implemented Interfaces: Iterable < TextFragment >

public final class TextFragmentCollection extends Object implements Iterable < TextFragment >

Represents a text fragments collection

Methods

MethodDescription
addAdds the text fragment element at the specified index.
clearClears all items from the collection.
containsDetermines whether the collection contains a specific value.
copyTo/ * / * Returns an enumerator for the entire collection. / * / *
get_ItemGets the text fragment element at the specified index. Index should be in the range [1..n] where n equals to the text fragments count.
getSyncRootGets an object that can be used to synchronize access to the collection.
isReadOnlyGets a value indicating whether collection is read-only
isSynchronizedGets a value indicating whether access to the collection is synchronized (thread safe).
iteratorReturns an enumerator for the entire collection.
removeDeletes specified item from collection.
sizeGets the number of {@code TextFragment} object elements actually contained in the collection.

add

Adds the text fragment element at the specified index.

clear

public void clear()

Clears all items from the collection.

contains

Determines whether the collection contains a specific value.

copyTo

/ * / * Returns an enumerator for the entire collection. / * / *

get_Item

public TextFragment get_Item(int index)

Gets the text fragment element at the specified index. Index should be in the range [1..n] where n equals to the text fragments count.

Parameters:

ParameterTypeDescription
indexIndex within the collection.

Returns: TextFragment object.

getSyncRoot

public Object getSyncRoot()

Gets an object that can be used to synchronize access to the collection.

Returns: Object element

isReadOnly

public boolean isReadOnly()

Gets a value indicating whether collection is read-only

Returns: boolean value

isSynchronized

public boolean isSynchronized()

Gets a value indicating whether access to the collection is synchronized (thread safe).

Returns: boolean value

iterator

public Iterator < TextFragment > iterator()

Returns an enumerator for the entire collection.

Returns: Enumerator object.

remove

Deletes specified item from collection.

size

public int size()

Gets the number of {@code TextFragment} object elements actually contained in the collection.

Returns: int value