VbaModuleCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList

public class VbaModuleCollection extends AbstractList<VbaModule>

Represents a collection of VbaModule objects.

Methods

MethodDescription
addItem(VbaModule item)Add the specified module to this collection.
clear(){@inheritDoc}
contains(VbaModule item)Checks if collection contains specified item.
get(int index)Gets the module at the specified index.
get(String moduleName)Gets the module with the specified name.
isReadOnly()Gets a value indicating whether this collection is read only.
iterator()Returns an enumerator for this collection.
remove(VbaModule item)Removes newly added module from the collection.
size()Gets the number of modules contained in the collection.
toList()Converts the collection object to a list of VbaModule objects.

addItem(VbaModule item)

public final void addItem(VbaModule item)

Add the specified module to this collection.

Parameters:

ParameterTypeDescription
itemVbaModulethe specified module which should be added to this collection.

clear()

public final void clear()

contains(VbaModule item)

public final boolean contains(VbaModule item)

Checks if collection contains specified item.

Parameters:

ParameterTypeDescription
itemVbaModuleThe item to check.

Returns: boolean - true, if collection contains an item, false otherwise.

get(int index)

public final VbaModule get(int index)

Gets the module at the specified index.

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}

Returns: VbaModule - {@inheritDoc}

get(String moduleName)

public final VbaModule get(String moduleName)

Gets the module with the specified name.

Parameters:

ParameterTypeDescription
moduleNamejava.lang.StringThe name of the module to get.

Returns: VbaModule - the module instance

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether this collection is read only.

Returns: boolean - a value indicating whether this collection is read only.

iterator()

public final Iterator<VbaModule> iterator()

Returns an enumerator for this collection.

Returns: java.util.Iterator<com.aspose.tasks.VbaModule> - an enumerator for this collection.

remove(VbaModule item)

public final boolean remove(VbaModule item)

Removes newly added module from the collection.

Parameters:

ParameterTypeDescription
itemVbaModulethe module to be removed

Returns: boolean - a value indicating whether the module was removed

size()

public final int size()

Gets the number of modules contained in the collection.

Returns: int - the number of modules contained in the collection.

toList()

public final List<VbaModule> toList()

Converts the collection object to a list of VbaModule objects.

Returns: java.util.List<com.aspose.tasks.VbaModule> - List of objects.