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 属性(返回情景)。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
isProtected | boolean | 读取 | 返回受保护的。 |
objects | boolean | 读取 | 返回对象。 |
scenarios | boolean | 读取 | 返回场景。 |
formatCells | boolean | 读取 | 返回格式单元格。 |
formatColumns | boolean | 读取 | 返回格式列。 |
formatRows | boolean | 读取 | 返回格式行。 |
insertColumns | boolean | 读取 | 返回插入列。 |
insertRows | boolean | 读取 | 返回插入行。 |
insertHyperlinks | boolean | 读取 | 返回插入的超链接。 |
deleteColumns | boolean | 读取 | 返回删除的列。 |
deleteRows | boolean | 读取 | 返回已删除的行。 |
selectLockedCells | boolean | 读取 | 返回选中的锁定单元格。 |
sort | boolean | 读取 | 返回排序。 |
autoFilter | boolean | 读取 | 返回自动筛选。 |
pivotTables | boolean | 读取 | 返回数据透视表。 |
selectUnlockedCells | boolean | 读取 | 返回所选的未锁定单元格。 |
passwordHash | String | 读取 | 返回密码哈希。 |
algorithmName | String | 读取 | 返回算法名称。 |
hashValue | String | 读取 | 返回哈希值。 |
saltValue | String | 读取 | 返回盐值。 |
spinCount | String | 读取 | 返回旋转计数。 |
方法
| 签名 | 描述 |
|---|---|
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 | 判断是否已存储任何保护状态。 |