asposecells.api

Class VbaProject

Represents the VBA project.

Property Getters/Setters Summary
methodgetCertRawData()
Gets certificate raw data if this VBA project is signed.
methodgetIslockedForViewing()
Indicates whether this VBA project is locked for viewing.
methodisProtected()
Indicates whether this VBA project is protected.
methodisSigned()
Indicates whether VBAcode is signed or not.
methodisValidSigned()
Indicates whether the signature of VBA project is valid or not.
methodgetModules()
Gets all VbaModule objects.
methodgetName()
method
setName(value)
           Gets and sets the name of the VBA project.
methodgetReferences()
Gets all references of VBA project.
 
Method Summary
methodcopy(source)
Copy VBA project from other file.
methodprotect(islockedForViewing, password)
Protects or unprotects this VBA project.
methodsign(digitalSignature)
Sign this VBA project by a DigitalSignature
methodvalidatePassword(password)
Validates protection password.
 

    • Property Getters/Setters Detail

      • isValidSigned : boolean 

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

        byte[] getCertRawData()
        
        Gets certificate raw data if this VBA project is signed.
      • getName/setName : String 

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

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

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

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

      • sign

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

         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

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

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