IVbaModuleCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IVbaModuleCollection extends IGenericCollection<IVbaModule>

Represents a collection of a VBA Project modules.

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
addEmptyModule(String name)Adds a new empty module to the VBA Project.
remove(IVbaModule value)Removes the first occurrence of a specific object from the collection.

get_Item(int index)

public abstract IVbaModule get_Item(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexint

Returns: IVbaModule

addEmptyModule(String name)

public abstract IVbaModule addEmptyModule(String name)

Adds a new empty module to the VBA Project.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of the module

Returns: IVbaModule - Added module.

remove(IVbaModule value)

public abstract void remove(IVbaModule value)

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

Parameters:

ParameterTypeDescription
valueIVbaModuleThe module to remove from the collection.