SelectAllAnnotations()
Summary
Selects all annotations in a map or layout window.
Syntax
SelectAllAnnotations(string window_spec)
| Argument | Contents |
|---|---|
| window_spec | Window specification, in the form "window type|window name" |
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 annotation 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"
SelectAllAnnotations(win)
DropSelectedAnnotations(win)
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | The map or layout window does not exist. |
See Also
| Function | Summary |
|---|---|
| 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 |