aspose.cells

Class VbaProject

Represents the VBA project.

Property Getters/Setters Summary
functiongetCertRawData()
Gets certificate raw data if this VBA project is signed.
functiongetEncoding()
function
           Gets and sets the encoding of VBA project.
functiongetIslockedForViewing()
Indicates whether this VBA project is locked for viewing.
functionisProtected()
Indicates whether this VBA project is protected.
functionisSigned()
Indicates whether VBAcode is signed or not.
functionisValidSigned()
Indicates whether the signature of VBA project is valid or not.
functiongetModules()
Gets all VbaModule objects.
functiongetName()
function
setName(value)
           Gets and sets the name of the VBA project.
functiongetReferences()
Gets all references of VBA project.
 
Method Summary
functioncopy(source)
Copy VBA project from other file.
functionprotect(islockedForViewing, password)
Protects or unprotects this VBA project.
functionsign(digitalSignature)
Sign this VBA project by a DigitalSignature
functionvalidatePassword(password)
Validates protection password.
 

    • Property Getters/Setters Detail

      • isValidSigned : boolean 

        function isValidSigned()
        
        Indicates whether the signature of VBA project is valid or not.
      • getCertRawData : byte[] 

        function getCertRawData()
        
        Gets certificate raw data if this VBA project is signed.
      • getEncoding/setEncoding : Encoding 

        function getEncoding() / function setEncoding(value)
        
        Gets and sets the encoding of VBA project.
      • getName/setName : String 

        function getName() / function setName(value)
        
        Gets and sets the name of the VBA project.
      • isSigned : boolean 

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

        function isProtected()
        
        Indicates whether this VBA project is protected.
      • getIslockedForViewing : boolean 

        function getIslockedForViewing()
        
        Indicates whether this VBA project is locked for viewing.
    • Method Detail

      • sign

        function sign(digitalSignature)
        Sign this VBA project by a DigitalSignature
        Parameters:
        digitalSignature: DigitalSignature - DigitalSignature
      • protect

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

        function copy(source)
        Copy VBA project from other file.
        Parameters:
        source: VbaProject -
      • validatePassword

        function validatePassword(password)
        Validates protection password.
        Parameters:
        password: String - the password
        Returns:
        Whether password is the protection password of this VBA project