WorkbookProtection
Overview
WorkbookProtection is a class in Aspose.Cells FOSS for Java.
Represents workbook-level protection settings (structure, windows, revision).
This class provides 11 methods for working with WorkbookProtection objects in Java programs.
Available methods include: getRevisionsPassword, getWorkbookPassword, isLockRevision, isLockStructure, isLockWindows, isProtected, setLockRevision, setLockStructure, setLockWindows, setRevisionsPassword, setWorkbookPassword.
All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.
Properties: lockRevision, lockStructure, lockWindows, protected, revisionsPassword, workbookPassword.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
protected | boolean | Read | Gets the protected. |
lockStructure | boolean | Read | Gets the lock structure. |
lockWindows | boolean | Read | Gets the lock windows. |
lockRevision | boolean | Read | Gets the lock revision. |
workbookPassword | String | Read | Gets the workbook password. |
revisionsPassword | String | Read | Gets the revisions password. |
Methods
| Signature | Description |
|---|---|
isProtected() → boolean | Returns true if protected is set. |
isLockStructure() → boolean | Returns true if lock structure is set. |
setLockStructure(v: boolean) | Sets the lock structure value. |
isLockWindows() → boolean | Returns true if lock windows is set. |
setLockWindows(v: boolean) | Sets the lock windows value. |
isLockRevision() → boolean | Returns true if lock revision is set. |
setLockRevision(v: boolean) | Sets the lock revision value. |
getWorkbookPassword() → String | Returns the workbook password. |
setWorkbookPassword(v: String) | Sets the workbook password value. |
getRevisionsPassword() → String | Returns the revisions password. |
setRevisionsPassword(v: String) | Sets the revisions password value. |