Back to Devexpress

DocumentProperties.Security Property

officefileapi-devexpress-dot-spreadsheet-dot-documentproperties-0541eb3d.md

latest2.0 KB
Original Source

DocumentProperties.Security Property

Gets or sets the security level of the document.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
DocumentSecurity Security { get; set; }
vb
Property Security As DocumentSecurity

Property Value

TypeDescription
DocumentSecurity

One of the DocumentSecurity enumeration values.

|

Available values:

NameDescription
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

DocumentProperties

Custom

DocumentProperties Interface

DocumentProperties Members

DevExpress.Spreadsheet Namespace