public final class VbaModuleCollection extends java.lang.Object implements IVbaModuleCollection
Represents a collection of a VBA Project modules.
| Modifier and Type | Method and Description |
|---|---|
IVbaModule |
addEmptyModule(java.lang.String name)
Adds a new empty module to the VBA Project.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
IVbaModule |
get_Item(int index)
Gets the element at the specified index.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaModule> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaModule> |
iteratorJava()
Returns a java iterator for the entire collection.
|
void |
remove(IVbaModule value)
Removes the first occurrence of a specific object from the collection.
|
int |
size()
Gets the number of elements actually contained in the collection.
|
public final int size()
Gets the number of elements actually contained in the collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<IVbaModule>public final void remove(IVbaModule value)
Removes the first occurrence of a specific object from the collection.
remove in interface IVbaModuleCollectionvalue - The module to remove from the collection.public final IVbaModule addEmptyModule(java.lang.String name)
Adds a new empty module to the VBA Project.
addEmptyModule in interface IVbaModuleCollectionname - Name of the modulepublic final IVbaModule get_Item(int index)
Gets the element at the specified index.
get_Item in interface IVbaModuleCollectionpublic final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaModule> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IVbaModule>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IVbaModule>iterator in interface java.lang.Iterable<IVbaModule>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaModule> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IVbaModule>Iterator for the entire collection.public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
copyTo in interface com.aspose.ms.System.Collections.ICollection<IVbaModule>array - Target array.index - Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IVbaModule>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IVbaModule>Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.