SelectAnnotation()

Summary

Adds an annotation to the list of selected annotations.

Syntax

SelectAnnotation(string window_spec, integer id)

Argument Contents
window_spec Window specification, in the form "window type|window name"
id Annotation ID

Notes

  • Selected annotations are marked with selection handles in the map or layout window.

  • Some annotations cannot be selected and are not added to the selected list.

  • Annotations can also be added to the selected list using the pointer tool.

  • Use GetSelectedAnnotations() to get a list of the IDs of selected annotations.

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

Example

win = "Map|My Map"
SelectAnnotations(win, 123)
DropSelectedAnnotations(win)

Error Codes

Error Type Meaning
NotFound The window or annotation does not exist

See Also

Function Summary
AddAnnotation() Adds an annotation to a map or layout window
DropAnnotation() Removes an annotation from a map or layout window
DropAnnotations() Removes annotations from a map or layout window
DropSelectedAnnotations() Removes selected annotations from a map or layout window
SelectAllAnnotations() Selects all annotations in a map or layout window
SelectAnnotation() Adds an annotation to the list of selected annotations
GetSelectedAnnotations() Gets the IDs of selected annotations in a map or layout window