## WriteProtection class

指定工作簿的写保护设置。

```csharp
public class WriteProtection
```

## 构造函数

| 姓名 | 描述 |
| --- | --- |
| [WriteProtection](writeprotection)() | 默认构造函数。 |

## 特性

| 姓名 | 描述 |
| --- | --- |
| [Author](../../aspose.cells/writeprotection/author) { get; set; } | 获取和设置作者。 |
| [IsWriteProtected](../../aspose.cells/writeprotection/iswriteprotected) { get; } | 指示此工作簿是否受写保护。 |
| [Password](../../aspose.cells/writeprotection/password) { set; } | 设置保护密码以修改文件。 |
| [RecommendReadOnly](../../aspose.cells/writeprotection/recommendreadonly) { get; set; } | 指示是否选择了只读推荐选项。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| [ValidatePassword](../../aspose.cells/writeprotection/validatepassword)(string) | 如果指定的密码与保护文件的写保护密码相同，则返回 true。 |

### 也可以看看

* 命名空间 [Aspose.Cells](../../aspose.cells)
* 部件 [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
