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.
|
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 IVbaReferenceCollection
public final IVbaReference get_Item(int index)
Gets the element at the specified index.
get_Item
in interface IVbaReferenceCollection
public 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>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the 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>