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: 19.5
Syntax
public sealed class WorksheetProtection

The WorksheetProtection type exposes the following members.

Constructors
  NameDescription
Public methodWorksheetProtection
Initializes a new instance of the WorksheetProtection class
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.
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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