WorksheetProtection Class
Encapsulates worksheet protection options, which allow to protect a worksheet in the output Spreadsheet document from modification of specified type with a specified password.
Inheritance Hierarchy

Namespace: GroupDocs.Editor.Options
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version:
public sealed class WorksheetProtection

The WorksheetProtection type exposes the following members.

Public methodWorksheetProtection
Creates new instance with default parameters. If not modified and passed to SpreadsheetSaveOptions, no worksheet protection will be applied
Public methodWorksheetProtection(WorksheetProtectionType, String)
Creates new instance with specified worksheet protection type and password
Public propertyPassword
Password, which is used for protecting a worksheet. If NULL or empty string, the protection will not be applied.
Public propertyProtectionType
Allows to specify a type of worksheet protection. By default is 'None' - protection is not applied.
Most of Spreadsheet formats like XLSX allows to protect a worksheet from editing with password. This class allows to enable such protection and specify its options.
See Also