AnnSetTag method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short AnnSetTag(long hObject, long nTag);

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Assigns a numeric tag to identify an annotation object. You can use the AnnGetTag method to get the tag.

You can use these two methods to keep track of particular objects such as buttons or hot spots over time.

When you load a file, an OnAnnCreate event is generated for each annotation. You can add code in this event to see which tags are already used in a file.

If the value of the AnnContainer property is passed as the hObject parameter, the method will modify all the annotations in the container.

If the value of the AnnAutomation property is passed as the hObject parameter, the method will modify the default values used whenever an annotation is created.

See Also

Topics:

Annotations (Document/Medical only): Object Manipulation