com.aspose.cells

Class VbaModuleCollection

  • java.lang.Object
  • All Implemented Interfaces:
    java.lang.Iterable
    public class VbaModuleCollection 
    extends CollectionBase

Represents the list of VbaModule

Property Getters/Setters Summary
intgetCount()
VbaModuleget(int index)
Gets VbaModule in the list by the index.
VbaModuleget(java.lang.String name)
Gets VbaModule in the list by the name.
 
Method Summary
intadd(Worksheet sheet)
Adds module for a worksheet.
intadd(int type, java.lang.String name)
Adds module.
intadd(java.lang.Object value)
Reserved for internal use.
voidaddDesignerStorage(java.lang.String name, byte[] data)
voidclear()
booleancontains(java.lang.Object value)
Reserved for internal use.
byte[]getDesignerStorage(java.lang.String name)
Represents the data of Designer.
intindexOf(java.lang.Object value)
Reserved for internal use.
java.util.Iteratoriterator()
voidremove(Worksheet sheet)
Removes module for a worksheet.
voidremove(java.lang.String name)
Remove the module by the name
voidremoveAt(int index)
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
      • get

        public VbaModule get(int index)
        
        Gets VbaModule in the list by the index.
        Parameters:
        index - The index.
        Returns:
      • get

        public VbaModule get(java.lang.String name)
        
        Gets VbaModule in the list by the name.
        Parameters:
        name - The name of module.
        Returns:
    • Method Detail

      • addDesignerStorage

        public void addDesignerStorage(java.lang.String name, byte[] data)
                               throws java.lang.Exception
        Parameters:
        name -
        data -
      • getDesignerStorage

        public byte[] getDesignerStorage(java.lang.String name)
                                 throws java.lang.Exception
        Represents the data of Designer. We do not support to parse them. Just only for copying.
      • add

        public int add(Worksheet sheet)
        Adds module for a worksheet.
        Parameters:
        sheet - The worksheet
        Returns:
      • add

        public int add(int type, java.lang.String name)
        Adds module.
        Parameters:
        type - A VbaModuleType value. The type of module.
        name - The name of module.
        Returns:
      • remove

        public void remove(Worksheet sheet)
        Removes module for a worksheet.
        Parameters:
        sheet - The worksheet
        Returns:
      • remove

        public void remove(java.lang.String name)
        Remove the module by the name
        Parameters:
        name -
      • clear

        public void clear()
      • removeAt

        public void removeAt(int index)
      • iterator

        public java.util.Iterator iterator()
      • contains

        public boolean contains(java.lang.Object value)
        Reserved for internal use.
      • add

        public int add(java.lang.Object value)
        Reserved for internal use.
      • indexOf

        public int indexOf(java.lang.Object value)
        Reserved for internal use.