AnnSetTag method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetTag(LEADTyp::L_HANDLE hObject, int iTag);

Delphi Syntax

Function AnnSetTag(hObject: L_HANDLE; iTag: longint): Integer;

Overview

Refer to Implementing Annotations.

Remarks

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

The AnnGetTag method and the AnnSetTag method can be used to keep track of particular objects such as buttons or hot spots over time.

When a file is loaded, an OnAnnCreate event is generated for each annotation object. Add code to this event to see which tags are already used in a file.

See Also

Topics:

Annotations (Document/Medical only): Object Manipulation