[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.WriteProtection

Class WriteProtection

Namespace
GrapeCity.Documents.Excel
Assembly
GcDocs.Excel.dll

Provides access to the workbook write protection options.

public class WriteProtection
Inheritance
object
WriteProtection
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

ReadOnlyRecommended

Indicates if the Read Only Recommended option is selected.

public bool ReadOnlyRecommended { get; set; }

Property Value

bool

WritePassword

Sets the protected password to modify the file.

public string WritePassword { set; }

Property Value

string

WriteReserved

Indicates whether this workbook is write protected.

public bool WriteReserved { get; }

Property Value

bool

WriteReservedBy

Gets and sets the name of the user who currently has write permission for the workbook.
If you don't explicitly specify this property, the value will come from the IWorkbook.Author, and if the IWorkbook.Author is empty string or null, the value will be "Document Solution for Excel".

public string WriteReservedBy { get; set; }

Property Value

string

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