com.aspose.words
Class VbaModuleCollection

java.lang.Object
    extended by com.aspose.words.VbaModuleCollection
All Implemented Interfaces:
java.lang.Iterable

public class VbaModuleCollection 
extends java.lang.Object

Represents a collection of VbaModule objects.

Example:

Shows how to get access to VBA project information in the document.
Document doc = new Document(getMyDir() + "Document.TestButton.docm");

// A VBA project inside the document is defined as a collection of VBA modules
VbaProject vbaProject = doc.getVbaProject();


VbaModuleCollection vbaModules = doc.getVbaProject().getModules();
for (VbaModule module : vbaModules) {
    System.out.println(MessageFormat.format("Module name: {0};\nModule code:\n{1}\n", module.getName(), module.getSourceCode()));
}

Constructor Summary
VbaModuleCollection()
          
 
Property Getters/Setters Summary
VbaModuleget(int index)
           Retrieves a VbaModule object by index.
 

Constructor Detail

VbaModuleCollection

public VbaModuleCollection()

Property Getters/Setters Detail

get

public VbaModule get(int index)
Retrieves a VbaModule object by index.
Parameters:
index - Zero-based index of the conditional style to retrieve.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.