AnnSetEncryptOptions method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetEncryptOptions(HANNOBJECT hObject)

Delphi Syntax

AnnSetEncryptOptions (hObject: HANNOBJECT ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

Sets the encryption options for the specified Encrypt annotation object.

To set the Encryption options for one or more objects you must set the desired options in the AnnEncryptOptions property before calling this method. In addition, you must set the AnnFlags property before calling this method, to indicate the objects for which to set the encryption options. Possible values for the Flags property are:

0

ANNFLAG_SELECTED

ANNFLAG_NOTTHIS

ANNFLAG_RECURSE

ANNFLAG_NOTCONTAINER

ANNFLAG_NOINVALIDATE

To get the annotation encryption options for a specific Encrypt annotation object, call the AnnGetEncryptOptions method. The AnnEncryptOptions property will be updated with the encryption options.

See Also

Elements:

AnnEncryptOptions property, AnnGetEncryptOptions method, Encryptor property (TAnnNameOptions), Flags property (TAnnNameOptions), Key property (TAnnNameOptions), NeverEncrypted property (TAnnNameOptions), SaveDecryptorKey property (TAnnNameOptions), SaveEncryptorKey property (TAnnNameOptions), ClearDecryptorKey property (TAnnNameOptions), ClearEncryptorKey property (TAnnNameOptions), EncryptBitmap property (TAnnNameOptions), AnnEncryptApply method

Topics:

Annotations: Object Manipulation