WorksheetProtection

WorksheetProtection

概述

WorksheetProtection 是 Aspose.Cells FOSS 中用于 Java 的类。

表示工作表的保护设置。

此类提供 31 个用于在 Java 程序中处理 WorksheetProtection 对象的方法。可用的方法包括:getAllowDeletingColumn、getAllowDeletingRow、getAllowEditingObject、getAllowEditingScenario、getAllowFiltering、getAllowFormattingCell、getAllowFormattingColumn、getAllowFormattingRow、getAllowInsertingColumn、getAllowInsertingHyperlink、getAllowInsertingRow、getAllowSelectingLockedCell,以及另外 19 个方法。所有导出的成员在安装 Aspose.Cells FOSS for Java 包后,可供任何 Java 应用程序访问。属性:allowDeletingColumn、allowDeletingRow、allowEditingObject、allowEditingScenario、allowFiltering、allowFormattingCell,以及另外 10 个。

描述

WorksheetProtection 是 Aspose.Cells FOSS 库中用于 Java 的类,公开 31 个方法和 16 个属性供程序化使用。

核心功能包括:boolean;boolean;boolean。这些操作使开发者能够将 worksheetprotection 功能直接集成到 Java 应用程序中。

该类还提供 protected 属性(如果工作表受保护则返回 {@code true})、allowEditingObject 属性(如果允许编辑对象(形状、图表)则返回 {@code true})、以及 allowEditingScenario 属性(如果允许编辑场景则返回 {@code true})。

属性

名称类型访问描述
protectedboolean读取如果工作表受保护,则返回 {@code true}。
allowEditingObjectboolean读取如果允许编辑对象(形状、图表),则返回 {@code true}。
allowEditingScenarioboolean读取如果允许编辑场景,则返回 {@code true}。
allowFormattingCellboolean读取如果允许格式化单元格,则返回 {@code true}。
allowFormattingColumnboolean读取如果允许格式化列,则返回 {@code true}。
allowFormattingRowboolean读取如果允许格式化行,则返回 {@code true}。
allowInsertingColumnboolean读取如果允许插入列,则返回 {@code true}。
allowInsertingRowboolean读取如果允许插入行,则返回 {@code true}。
allowInsertingHyperlinkboolean读取如果允许插入超链接,则返回 {@code true}。
allowDeletingColumnboolean读取如果允许删除列,则返回 {@code true}。
allowDeletingRowboolean读取如果允许删除行,则返回 {@code true}。
allowSelectingLockedCellboolean读取如果允许选择已锁定的单元格,则返回 {@code true}。
allowSortingboolean读取如果允许排序,则返回 {@code true}。
allowFilteringboolean读取如果允许使用 AutoFilter,则返回 {@code true}。
allowUsingPivotTableboolean读取如果允许使用数据透视表,则返回 {@code true}。
allowSelectingUnlockedCellboolean读取如果允许选择未锁定的单元格,则返回 {@code true}。

方法

签名描述
isProtected() → boolean如果工作表受保护,则返回 {@code true}。
getAllowEditingObject() → boolean如果允许编辑对象(形状、图表),则返回 {@code true}。
setAllowEditingObject(allow: boolean)设置是否允许编辑对象。
getAllowEditingScenario() → boolean如果允许编辑场景,则返回 {@code true}。
setAllowEditingScenario(allow: boolean)设置是否允许编辑方案。
getAllowFormattingCell() → boolean如果允许格式化单元格,则返回 {@code true}。
setAllowFormattingCell(allow: boolean)设置是否允许格式化单元格。
getAllowFormattingColumn() → boolean如果允许格式化列,则返回 {@code true}。
setAllowFormattingColumn(allow: boolean)设置是否允许格式化列。
getAllowFormattingRow() → boolean如果允许格式化行,则返回 {@code true}。
setAllowFormattingRow(allow: boolean)设置是否允许格式化行。
getAllowInsertingColumn() → boolean如果允许插入列,则返回 {@code true}。
setAllowInsertingColumn(allow: boolean)设置是否允许插入列。
getAllowInsertingRow() → boolean如果允许插入行,则返回 {@code true}。
setAllowInsertingRow(allow: boolean)设置是否允许插入行。
getAllowInsertingHyperlink() → boolean如果允许插入超链接,则返回 {@code true}。
setAllowInsertingHyperlink(allow: boolean)设置是否允许插入超链接。
getAllowDeletingColumn() → boolean如果允许删除列,则返回 {@code true}。
setAllowDeletingColumn(allow: boolean)设置是否允许删除列。
getAllowDeletingRow() → boolean如果允许删除行,则返回 {@code true}。
setAllowDeletingRow(allow: boolean)设置是否允许删除行。
getAllowSelectingLockedCell() → boolean如果允许选择已锁定的单元格,则返回 {@code true}。
setAllowSelectingLockedCell(allow: boolean)设置是否允许选择已锁定的单元格。
getAllowSorting() → boolean如果允许排序,则返回 {@code true}。
setAllowSorting(allow: boolean)设置是否允许排序。
getAllowFiltering() → boolean如果允许使用 AutoFilter,则返回 {@code true}。
setAllowFiltering(allow: boolean)设置是否允许使用 AutoFilter。
getAllowUsingPivotTable() → boolean如果允许使用数据透视表,则返回 {@code true}。
setAllowUsingPivotTable(allow: boolean)设置是否允许使用数据透视表。
getAllowSelectingUnlockedCell() → boolean如果允许选择未锁定的单元格,则返回 {@code true}。
setAllowSelectingUnlockedCell(allow: boolean)设置是否允许选择未锁定的单元格。

另请参阅

 中文