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
SystemObject
  GroupDocs.Editor.OptionsWorksheetProtection

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

The WorksheetProtection type exposes the following members.

Constructors
  NameDescription
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
Properties
  NameDescription
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.
Remarks
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