
## WriteProtection class

Specifies write protection settings for a workbook.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Author](#author) | String | Gets and sets the author. |
| [RecommendReadOnly](#recommendreadonly) | boolean | Indicates if the Read Only Recommended option is selected. |
| [IsWriteProtected](#iswriteprotected) | boolean | Indicates whether this workbook is write protected. |
| [Password](#password) | String | Sets the protected password to modify the file. |

## Methods

| Name | Description |
| --- | --- |
| [validatePassword](#validatepassword) | Returns true if the specified password is the same as the write-protection password the file was protected with. |

### WriteProtection.Author property {#author}

Gets and sets the author.

**Type:** String

### WriteProtection.RecommendReadOnly property {#recommendreadonly}

Indicates if the Read Only Recommended option is selected.

**Type:** boolean

### WriteProtection.IsWriteProtected property {#iswriteprotected}

Indicates whether this workbook is write protected.

**Type:** boolean

### WriteProtection.Password property {#password}

Sets the protected password to modify the file.

**Type:** String

### validatePassword(password) {#validatepassword}

Returns true if the specified password is the same as the write-protection password the file was protected with.

| Parameter | Type | Description |
| --- | --- | --- |
| password | String | The specified password. |
