Click or drag to resize
DocumentProtectionStartEnforcingProtection Method
Starts enforcing protection by restricting document editing actions to those specified by editingRestriction parameter with optional password which must be specified to stop protection in consumer application such as MS Word.

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1231
Syntax
public void StartEnforcingProtection(
	EditingRestrictionType editingRestriction,
	string password
)

Parameters

editingRestriction
Type: GemBox.DocumentEditingRestrictionType
The editing restriction enforced upon the document in consumer application such as MS Word.
password
Type: SystemString
The optional password which must be specified to stop protection in consumer application such as MS Word.
See Also