AnnLock method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short AnnLock(long hObject, BSTR pszKey, VARIANT_BOOL bSelected);

Overview

Refer to Implementing Annotation Security

Remarks

(Document/Medical only) Locks annotations with the specified key. Annotations cannot be modified through the automated mode unless they are unlocked with the same key either using AnnUnlock method, or through the automated mode unlock menu item. The key is case sensitive! If the AnnShowLockedIcon property is VARIANT_TRUE, the locked objects are drawn with a padlock icon on top of them. If a redact object is locked, AnnUnrealize method will fail on that object.

There is one property associated with this method. The AnnShowLockedIcon property determines how locked objects are drawn.

See Also

Elements:

AnnUnlock method, AnnUnrealize method, AnnShowLockedIcon property, AnnRealize method

Topics:

Annotations (Document/Medical only): Annotation Security