com.aspose.cells

Class VbaProject

  • java.lang.Object
    • com.aspose.cells.VbaProject
public class VbaProject 
extends java.lang.Object

Represents the VBA project.

Property Getters/Setters Summary
booleangetIslockedForViewing()
Inidicates whether this VBA project is locked for viewing.
booleanisProtected()
Inidicates whether this VBA project is protected.
booleanisSigned()
Indicates whether VBAcode is signed or not.
VbaModuleCollectiongetModules()
Gets all VbaModule objects.
java.lang.StringgetName()
void
setName(java.lang.Stringvalue)
           Gets and sets the name of the VBA project.
VbaProjectReferenceCollectiongetReferences()
Gets all references of VBA project.
 
Method Summary
voidprotect(boolean islockedForViewing, java.lang.String password)
Protects or unprotects this VBA project.
 

    • Property Getters/Setters Detail

      • getName/setName

        public java.lang.String getName() / public void setName(java.lang.String value)
        
        Gets and sets the name of the VBA project.
      • isSigned

        public boolean isSigned()
        
        Indicates whether VBAcode is signed or not.
      • isProtected

        public boolean isProtected()
        
        Inidicates whether this VBA project is protected.
      • getIslockedForViewing

        public boolean getIslockedForViewing()
        
        Inidicates whether this VBA project is locked for viewing.

    setName

    public voidsetName(java.lang.Stringvalue)
    
    Gets and sets the name of the VBA project.
    • Method Detail

      • protect

        public void protect(boolean islockedForViewing, java.lang.String password)
        Protects or unprotects this VBA project. If islockedForViewing is true, the password could not be null.
        Parameters:
        islockedForViewing - indicates whether locks project for viewing.
        password - If the value is null, unprotects this VBA project, otherwise projects the this VBA project.