Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditDocument.Protect(string) Method

Enforces the opened document’s password protection from accidental changes.

#Declaration

Delphi
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