TextSegmentCollection
Inheritance: java.lang.Object, com.aspose.pdf.TextSegmentCollection
All Implemented Interfaces: Iterable < TextSegment >
public final class TextSegmentCollection extends Object implements Iterable < TextSegment >
Represents a text segments collection
Methods
| Method | Description |
|---|---|
| add | Adds the text segment element at the specified index. |
| clear | Clears all items from the collection. |
| contains | Determines whether the collection contains a specific value. |
| copyTo | Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array |
| delete | Deletes the text segment element at the specified index. |
| get_Item | Gets the text segment element at the specified index. |
| getSyncRoot | Gets an object that can be used to synchronize access to the collection. |
| isReadOnly | Gets a value indicating whether collection is read-only |
| isSynchronized | Gets a value indicating whether access to the collection is synchronized (thread safe). |
| iterator | Returns an enumerator for the entire collection. |
| remove | Deletes specified item from collection. |
| size | Gets the number of {@code TextSegment} object elements actually contained in the collection. |
add
Adds the text segment 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
Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array
delete
public void delete(int index)
Deletes the text segment element at the specified index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int value |
get_Item
public TextSegment get_Item(int index)
Gets the text segment element at the specified index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | Index within the collection. |
Returns: TextSegment 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 < TextSegment > 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 TextSegment} object elements actually contained in the collection.
Returns: int value