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.HasEncryptionPassword Method

Identifies if the opened document has an assigned encryption password.

#Declaration

Delphi
function HasEncryptionPassword: Boolean;

#Returns

Type Description
Boolean

True if the document has an assigned encryption password; otherwise, False.

#Remarks

Only Office OpenXML (DOCX) file format supports document file encryption. If a user saves the document in another format, the Rich Edit control displays the following dialog:

Password Protection Loss Confirmation

Note

Call a Rich Edit component’s SetEncryptionPassword function to assign, modify, or remove an encryption password.

Refer to the following topics for information on how to manage encrypted documents:

See Also