com.aspose.slides
Class VbaModuleCollection

java.lang.Object
  extended by com.aspose.slides.VbaModuleCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IVbaModule>, com.aspose.ms.System.Collections.IEnumerable<IVbaModule>, IGenericCollection<IVbaModule>, IVbaModuleCollection, java.lang.Iterable<IVbaModule>

public final class VbaModuleCollection
extends java.lang.Object
implements IVbaModuleCollection

Represents a collection of a VBA Project modules.


Method Summary
 IVbaModule addEmptyModule(java.lang.String name)
           Adds a new empty module to the VBA Project.
 void copyTo(IVbaModule[] 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.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()

Gets the number of elements actually contained in the collection. Read-only int.

Specified by:
size in interface IGenericCollection<IVbaModule>

remove

public void remove(IVbaModule value)

Removes the first occurrence of a specific object from the collection.

Specified by:
remove in interface IVbaModuleCollection
Parameters:
value - The module to remove from the collection.

addEmptyModule

public IVbaModule addEmptyModule(java.lang.String name)

Adds a new empty module to the VBA Project.

Specified by:
addEmptyModule in interface IVbaModuleCollection
Parameters:
name - Name of the module
Returns:
Added module.

get_Item

public IVbaModule get_Item(int index)

Gets the element at the specified index.

Specified by:
get_Item in interface IVbaModuleCollection

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVbaModule> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IVbaModule>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<IVbaModule>
Specified by:
iterator in interface java.lang.Iterable<IVbaModule>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

copyTo

public void copyTo(IVbaModule[] array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface IGenericCollection<IVbaModule>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Specified by:
isSynchronized in interface IGenericCollection<IVbaModule>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Specified by:
getSyncRoot in interface IGenericCollection<IVbaModule>


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.