WorksheetProtectionModel

WorksheetProtectionModel

概述

WorksheetProtectionModel 是 Aspose.Cells FOSS 中用于 Java 的一个类。

表示 Excel 文件中工作表的保护模型。

此类提供了 44 个方法,用于在 Java 程序中处理 WorksheetProtectionModel 对象。可用的方法包括:clear、getAlgorithmName、getAutoFilter、getDeleteColumns、getDeleteRows、getFormatCells、getFormatColumns、getFormatRows、getHashValue、getInsertColumns、getInsertHyperlinks、getInsertRows,以及另外 32 个方法。安装 Aspose.Cells FOSS for Java 包后,所有导出的成员对任何 Java 应用程序均可访问。属性:algorithmName、autoFilter、deleteColumns、deleteRows、formatCells、formatColumns,以及另外 15 项。

描述

WorksheetProtectionModel 是 Aspose.Cells FOSS 库中用于 Java 的一个类,提供 44 个方法和 21 个属性供编程使用。

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

该类还提供了 isProtected 属性(返回受保护的),objects 属性(返回对象),以及 scenarios 属性(返回情景)。

属性

名称类型访问描述
isProtectedboolean读取返回受保护的。
objectsboolean读取返回对象。
scenariosboolean读取返回场景。
formatCellsboolean读取返回格式单元格。
formatColumnsboolean读取返回格式列。
formatRowsboolean读取返回格式行。
insertColumnsboolean读取返回插入列。
insertRowsboolean读取返回插入行。
insertHyperlinksboolean读取返回插入的超链接。
deleteColumnsboolean读取返回删除的列。
deleteRowsboolean读取返回已删除的行。
selectLockedCellsboolean读取返回选中的锁定单元格。
sortboolean读取返回排序。
autoFilterboolean读取返回自动筛选。
pivotTablesboolean读取返回数据透视表。
selectUnlockedCellsboolean读取返回所选的未锁定单元格。
passwordHashString读取返回密码哈希。
algorithmNameString读取返回算法名称。
hashValueString读取返回哈希值。
saltValueString读取返回盐值。
spinCountString读取返回旋转计数。

方法

签名描述
getIsProtected() → boolean返回受保护的。
setIsProtected(isProtected: boolean)设置受保护状态。
getObjects() → boolean返回对象。
setObjects(objects: boolean)设置对象。
getScenarios() → boolean返回场景。
setScenarios(scenarios: boolean)设置情景。
getFormatCells() → boolean返回格式单元格。
setFormatCells(formatCells: boolean)设置格式化单元格。
getFormatColumns() → boolean返回格式列。
setFormatColumns(formatColumns: boolean)设置格式列。
getFormatRows() → boolean返回格式行。
setFormatRows(formatRows: boolean)设置格式行。
getInsertColumns() → boolean返回插入列。
setInsertColumns(insertColumns: boolean)设置插入列。
getInsertRows() → boolean返回插入行。
setInsertRows(insertRows: boolean)设置插入行。
getInsertHyperlinks() → boolean返回插入超链接。
setInsertHyperlinks(insertHyperlinks: boolean)设置插入超链接。
getDeleteColumns() → boolean返回已删除的列。
setDeleteColumns(deleteColumns: boolean)设置删除列。
getDeleteRows() → boolean返回已删除的行。
setDeleteRows(deleteRows: boolean)设置删除行。
getSelectLockedCells() → boolean返回选中的已锁定单元格。
setSelectLockedCells(selectLockedCells: boolean)设置选择已锁定的单元格。
getSort() → boolean返回排序。
setSort(sort: boolean)设置排序。
getAutoFilter() → boolean返回自动过滤器。
setAutoFilter(autoFilter: boolean)设置自动筛选。
getPivotTables() → boolean返回数据透视表。
setPivotTables(pivotTables: boolean)设置数据透视表。
getSelectUnlockedCells() → boolean返回所选的未锁定单元格。
setSelectUnlockedCells(selectUnlockedCells: boolean)设置选择未锁定的单元格。
getPasswordHash() → String返回密码哈希。
setPasswordHash(passwordHash: String)设置密码哈希。
getAlgorithmName() → String返回算法名称。
setAlgorithmName(algorithmName: String)设置算法名称。
getHashValue() → String返回哈希值。
setHashValue(hashValue: String)设置哈希值。
getSaltValue() → String返回盐值。
setSaltValue(saltValue: String)设置盐值。
getSpinCount() → String返回旋转计数。
setSpinCount(spinCount: String)设置自旋计数。
clear()将所有保护设置清除为默认值。
hasStoredState() → boolean判断是否已存储任何保护状态。

另请参阅

 中文