DropAnnotation()

Summary

Removes an annotation from a map or layout window.

Syntax

DropAnnotation(string window_spec, integer id)

Argument Contents
window_spec String containing the window type and name
id ID of the annotation to be dropped

Notes

  • If the ID is null, or an annotation with this ID does not exist, DropAnnotation() returns without an error.

  • For a full list of GISDK functions for annotations, see Freehand Items (Annotations).

Example

DropAnnotation("Map|My First Map", 27)

Error Codes

Error Type Meaning
NotFound The map or layout window does not exist

See Also

Function Summary
AddAnnotation() Adds an annotation to a map or layout window
DropAnnotations() Removes annotations from a map or layout window
DuplicateAnnotation() Creates a copy of an annotation
GetAnnotation() Returns the definition of an annotation
GetAnnotations() Return the IDs of all annotations in a map or layout window
MoveAnnotation() Moves an annotation to a new location
SetAnnotation() Modifies an existing annotation in a map or layout window