Skip to main content

IdxRichEditDocument.HasEncryptionPassword Method

Identifies if the current document has an encryption password.

Declaration

function HasEncryptionPassword: Boolean;

Returns

Type Description
Boolean

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

Remarks

Only the Office OpenXML (DOCX) format supports encryption. If a user exports the document in any other supported format, the Rich Edit control displays the following dialog:

Password Protection Loss Confirmation

Manage Encryption Passwords

You can call the SetEncryptionPassword procedure to add, remove, or modify an encryption password.

See Also