WorkbookProtection

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

NameTypeAccessDescription
protectedbooleanReadGets the protected.
lockStructurebooleanReadGets the lock structure.
lockWindowsbooleanReadGets the lock windows.
lockRevisionbooleanReadGets the lock revision.
workbookPasswordStringReadGets the workbook password.
revisionsPasswordStringReadGets the revisions password.

Methods

SignatureDescription
isProtected()booleanReturns true if protected is set.
isLockStructure()booleanReturns true if lock structure is set.
setLockStructure(v: boolean)Sets the lock structure value.
isLockWindows()booleanReturns true if lock windows is set.
setLockWindows(v: boolean)Sets the lock windows value.
isLockRevision()booleanReturns true if lock revision is set.
setLockRevision(v: boolean)Sets the lock revision value.
getWorkbookPassword()StringReturns the workbook password.
setWorkbookPassword(v: String)Sets the workbook password value.
getRevisionsPassword()StringReturns the revisions password.
setRevisionsPassword(v: String)Sets the revisions password value.

See Also