public class VbaReferenceCollection extends java.lang.Object implements IVbaReferenceCollection
Represents a collection of a VBA Project references.
| Modifier and Type | Method and Description |
|---|---|
void |
add(IVbaReference value)
Adds the new reference to references collection
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
IVbaReference |
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<IVbaReference> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaReference> |
iteratorJava()
Returns a java iterator for the entire 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<IVbaReference>public final void add(IVbaReference value)
Adds the new reference to references collection
add in interface IVbaReferenceCollectionvalue - VBA project reference IVbaReferencepublic final IVbaReference get_Item(int index)
Gets the element at the specified index.
get_Item in interface IVbaReferenceCollectionpublic final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaReference> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IVbaReference>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IVbaReference>iterator in interface java.lang.Iterable<IVbaReference>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaReference> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IVbaReference>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<IVbaReference>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<IVbaReference>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IVbaReference>Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.