DocumentProperties.Security Property
Gets or sets the security level of the document.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v25.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
| Type | Description |
|---|---|
| DocumentSecurity | One of the DocumentSecurity enumeration values. |
Available values:
| Name | Description |
|---|---|
| None | Not specified. |
| Password | Document is password protected. |
| ReadonlyRecommended | Document is recommended to be opened as read-only. |
| ReadonlyEnforced | Document is enforced to be opened as read-only. |
| Locked | Document is locked for annotation. |
Remarks
The Security property allows you to specify one of the predefined document properties, a full set of which is available by using the IWorkbook.DocumentProperties property. To specify the custom document properties, use the DocumentProperties.Custom property.
See Also