WriteProtection Class

WriteProtection class

Specifies write protection settings for a workbook.


type WriteProtection struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewWriteProtectionDefault constructor.

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetAuthorGets and sets the author.
SetAuthorGets and sets the author.
GetRecommendReadOnlyIndicates if the Read Only Recommended option is selected.
SetRecommendReadOnlyIndicates if the Read Only Recommended option is selected.
IsWriteProtectedIndicates whether this workbook is write protected.
GetPasswordSets the protected password to modify the file.
SetPasswordSets the protected password to modify the file.
ValidatePasswordReturns true if the specified password is the same as the write-protection password the file was protected with.