IdxRichEditDocument.Protect(string) Method
Enforces the opened document’s password protection from accidental changes.
Declaration
procedure Protect(const APassword: string);
Parameters
Name | Type |
---|---|
APassword | string |
Remarks
Invoke this procedure to protect the document with a password passed as the APassword parameter. If the document protection is enabled, only the user whose name is assigned to a range permission’s UserName property can edit the respective document range. Calling the Unprotect procedure cancels the active document protection.
To identify whether the document is protected from changes, use the IsDocumentProtected property.
An end-user can assign a protection password to the document via the Start Enforcing Protection dialog invoked by the ProtectDocument command.
See Also