TableElementCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public final class TableElementCollection<T1> implements Iterable<T1>

Represents a collection of elements absorbed from existing table

T : Instance of type implementing ITableElement

Methods

MethodDescription
size()Gets the number of table elements actually contained in the collection.
getSyncRoot()Gets an object that can be used to synchronize access to the collection.
isSynchronized()Gets a value indicating whether access to the collection is synchronized (thread safe).
isReadOnly()Gets a value indicating whether collection is read-only
addItem(ITableElement element)Adds the text fragment element at the specified index.
iterator_Rename_Namesake()Returns an enumerator for the entire collection.
iterator()Returns an enumerator for the entire collection.
copyToTArray(T1[] array, int index)Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array
clear()Clears all items from the collection.
containsItem(T1 item)Determines whether the collection contains a specific value.
removeItem(T1 item)Deletes specified item from collection.
get_Item(int index)Gets the text fragment element at the specified index.

size()

public int size()

Gets the number of table elements actually contained in the collection.

Returns: int - int value

getSyncRoot()

public Object getSyncRoot()

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

Returns: java.lang.Object - SyncRoot Object

isSynchronized()

public boolean isSynchronized()

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

Returns: boolean - boolean value

isReadOnly()

public boolean isReadOnly()

Gets a value indicating whether collection is read-only

Returns: boolean - boolean value

addItem(ITableElement element)

public void addItem(ITableElement element)

Adds the text fragment element at the specified index.

Parameters:

ParameterTypeDescription
elementITableElementITableElement instance

iterator_Rename_Namesake()

public System.Collections.IEnumerator iterator_Rename_Namesake()

Returns an enumerator for the entire collection.

Returns: com.aspose.ms.System.Collections.IEnumerator - Enumerator object.

iterator()

public System.Collections.IEnumerator<T1> iterator()

Returns an enumerator for the entire collection.

Returns: com.aspose.ms.System.Collections.IEnumerator - Enumerator object.

copyToTArray(T1[] array, int index)

public void copyToTArray(T1[] array, int index)

Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array

Parameters:

ParameterTypeDescription
arrayT1[]Array of objects which will be copied.
indexintStarting index from which copying will be started.

clear()

public void clear()

Clears all items from the collection.

containsItem(T1 item)

public boolean containsItem(T1 item)

Determines whether the collection contains a specific value.

Parameters:

ParameterTypeDescription
itemT1The object to locate in the collection

Returns: boolean - true if item is found in the collection; otherwise, false.

removeItem(T1 item)

public boolean removeItem(T1 item)

Deletes specified item from collection.

Parameters:

ParameterTypeDescription
itemT1The object to delete

Returns: boolean - true if item was deleted from collection; otherwise, false.

get_Item(int index)

public T1 get_Item(int index)

Gets the text fragment element at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex within the collection.

Returns: T1 - table element object.