Click or drag to resize

WriteProtectionSetPassword Method

Sets the write protection password for the current DocumentModel instance.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 27.3.30.1028
Syntax
public void SetPassword(
	string password
)

Parameters

password
Type: SystemString
New write protection password (or to remove password from write protection).
Remarks
Password is optional for write protection, but without it any user will be able to open the document as not read-only and thus be able to resave the document using the same file name.
See Also