java.lang.Objectcom.aspose.words.VbaModuleCollection
public class VbaModuleCollection
Example:
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()));
}
Property Getters/Setters Summary | ||
---|---|---|
VbaModule | get(int index) | |
Retrieves a |
Property Getters/Setters Detail |
---|
get | |
public VbaModule get(int index) |
index
- Zero-based index of the conditional style to retrieve.