WordProcessingContentProtect Method
Protects the document from changes and sets a protection password.

Namespace: GroupDocs.Watermark.Contents.WordProcessing
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public void Protect(
	WordProcessingProtectionType protectionType,
	string password
)

Parameters

protectionType
Type: GroupDocs.Watermark.Contents.WordProcessingWordProcessingProtectionType
Specifies the protection type for the document.
password
Type: SystemString
The password to protect the document with.
Remarks
To have the content of the document editable use appropriate method of adding watermark with AllowOnlyFormFields or ReadOnlyWithEditableContent parameter.
See Also