WorksheetProtection

WorksheetProtection

Overview

WorksheetProtection is a class in Aspose.Cells FOSS for Java.

Represents protection settings for a worksheet.

This class provides 31 methods for working with WorksheetProtection objects in Java programs. Available methods include: getAllowDeletingColumn, getAllowDeletingRow, getAllowEditingObject, getAllowEditingScenario, getAllowFiltering, getAllowFormattingCell, getAllowFormattingColumn, getAllowFormattingRow, getAllowInsertingColumn, getAllowInsertingHyperlink, getAllowInsertingRow, getAllowSelectingLockedCell, and 19 additional methods. All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package. Properties: allowDeletingColumn, allowDeletingRow, allowEditingObject, allowEditingScenario, allowFiltering, allowFormattingCell, and 10 more.

Properties

NameTypeAccessDescription
protectedbooleanReadReturns {@code true} if the worksheet is protected.
allowEditingObjectbooleanReadReturns {@code true} if editing objects (shapes, charts) is allowed.
allowEditingScenariobooleanReadReturns {@code true} if editing scenarios is allowed.
allowFormattingCellbooleanReadReturns {@code true} if formatting cells is allowed.
allowFormattingColumnbooleanReadReturns {@code true} if formatting columns is allowed.
allowFormattingRowbooleanReadReturns {@code true} if formatting rows is allowed.
allowInsertingColumnbooleanReadReturns {@code true} if inserting columns is allowed.
allowInsertingRowbooleanReadReturns {@code true} if inserting rows is allowed.
allowInsertingHyperlinkbooleanReadReturns {@code true} if inserting hyperlinks is allowed.
allowDeletingColumnbooleanReadReturns {@code true} if deleting columns is allowed.
allowDeletingRowbooleanReadReturns {@code true} if deleting rows is allowed.
allowSelectingLockedCellbooleanReadReturns {@code true} if selecting locked cells is allowed.
allowSortingbooleanReadReturns {@code true} if sorting is allowed.
allowFilteringbooleanReadReturns {@code true} if using AutoFilter is allowed.
allowUsingPivotTablebooleanReadReturns {@code true} if using pivot tables is allowed.
allowSelectingUnlockedCellbooleanReadReturns {@code true} if selecting unlocked cells is allowed.

Methods

SignatureDescription
isProtected()booleanReturns {@code true} if the worksheet is protected.
getAllowEditingObject()booleanReturns {@code true} if editing objects (shapes, charts) is allowed.
setAllowEditingObject(allow: boolean)Sets whether editing objects is allowed.
getAllowEditingScenario()booleanReturns {@code true} if editing scenarios is allowed.
setAllowEditingScenario(allow: boolean)Sets whether editing scenarios is allowed.
getAllowFormattingCell()booleanReturns {@code true} if formatting cells is allowed.
setAllowFormattingCell(allow: boolean)Sets whether formatting cells is allowed.
getAllowFormattingColumn()booleanReturns {@code true} if formatting columns is allowed.
setAllowFormattingColumn(allow: boolean)Sets whether formatting columns is allowed.
getAllowFormattingRow()booleanReturns {@code true} if formatting rows is allowed.
setAllowFormattingRow(allow: boolean)Sets whether formatting rows is allowed.
getAllowInsertingColumn()booleanReturns {@code true} if inserting columns is allowed.
setAllowInsertingColumn(allow: boolean)Sets whether inserting columns is allowed.
getAllowInsertingRow()booleanReturns {@code true} if inserting rows is allowed.
setAllowInsertingRow(allow: boolean)Sets whether inserting rows is allowed.
getAllowInsertingHyperlink()booleanReturns {@code true} if inserting hyperlinks is allowed.
setAllowInsertingHyperlink(allow: boolean)Sets whether inserting hyperlinks is allowed.
getAllowDeletingColumn()booleanReturns {@code true} if deleting columns is allowed.
setAllowDeletingColumn(allow: boolean)Sets whether deleting columns is allowed.
getAllowDeletingRow()booleanReturns {@code true} if deleting rows is allowed.
setAllowDeletingRow(allow: boolean)Sets whether deleting rows is allowed.
getAllowSelectingLockedCell()booleanReturns {@code true} if selecting locked cells is allowed.
setAllowSelectingLockedCell(allow: boolean)Sets whether selecting locked cells is allowed.
getAllowSorting()booleanReturns {@code true} if sorting is allowed.
setAllowSorting(allow: boolean)Sets whether sorting is allowed.
getAllowFiltering()booleanReturns {@code true} if using AutoFilter is allowed.
setAllowFiltering(allow: boolean)Sets whether using AutoFilter is allowed.
getAllowUsingPivotTable()booleanReturns {@code true} if using pivot tables is allowed.
setAllowUsingPivotTable(allow: boolean)Sets whether using pivot tables is allowed.
getAllowSelectingUnlockedCell()booleanReturns {@code true} if selecting unlocked cells is allowed.
setAllowSelectingUnlockedCell(allow: boolean)Sets whether selecting unlocked cells is allowed.

See Also