Class LockerSaveOptions

Info

Options to lock excel files.

public class LockerSaveOptions : SaveOptions

Inheritance

objectSaveOptionsLockerSaveOptions

Inherited Members

Constructors

LockerSaveOptions()

public LockerSaveOptions()

Properties

Password

Password to open the file.

public string Password { get; set; }

Property Value

string

PasswordOfWriteProtection

Password to modify the file.

public string PasswordOfWriteProtection { get; set; }

Property Value

string

SettingsOfWorkbookProtection

Protection settings to protect the workbook.

public ProtectionSettings SettingsOfWorkbookProtection { get; set; }

Property Value

ProtectionSettings

SettingsOfWorksheetProtection

The default protection settings used to protect the worksheet.

public ProtectionSettings SettingsOfWorksheetProtection { get; set; }

Property Value

ProtectionSettings

Methods

GetPasswordOfWorksheetProtection(SplitPartInfo)

Gets the protection settings to protect one worksheet.

public virtual ProtectionSettings GetPasswordOfWorksheetProtection(SplitPartInfo info)

Parameters

  • info SplitPartInfo: Infomation about current sheet which needs to be protected.

Returns

ProtectionSettings : the protection settings to protect current sheet. By default this method returns the settings specified by Sheetize.LockerSaveOptions.SettingsOfWorksheetProtection. If it is null, current sheet will not be protected.

Namespace: Sheetize Assembly: Sheetize.dll