Class WriteProtection

Class WriteProtection

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Specifies write protection settings for a workbook.

public class WriteProtection

Inheritance

objectWriteProtection

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Author

Gets and sets the author.

public string Author { get; set; }

Property Value

string

IsWriteProtected

Indicates whether this workbook is write protected.

public bool IsWriteProtected { get; }

Property Value

bool

Password

Sets the protected password to modify the file.

public string Password { get; set; }

Property Value

string

RecommendReadOnly

Indicates if the Read Only Recommended option is selected.

public bool RecommendReadOnly { get; set; }

Property Value

bool

Methods

ValidatePassword(string)

Returns true if the specified password is the same as the write-protection password the file was protected with.

public bool ValidatePassword(string password)

Parameters

password string

The specified password.

Returns

bool