Maptitude GISDK Help |
Creates a copy of an annotation.
id = DuplicateAnnotation(string window_spec, integer id)
Argument |
Contents |
window_spec |
String that contains the window type and name |
id |
ID of the annotation to be copied |
The integer id of the new annotation, or null if the annotation could not be copied.
The position of the new annotation is identical to the original.
Some annotations are marked unique and cannot be duplicated.
DuplicateAnnotation() can be used to help create drop shadow effects.
For a full list of GISDK functions for annotations, see Freehand Items (Annotations).
new_id = DuplicateAnnotation("Map|My Map", 47)
Error Type |
Meaning |
NotFound |
The window or the specified annotation does not exist |
Function |
Summary |
Adds an annotation to a map or layout window |
|
Removes an annotation from a map or layout window |
|
Removes annotations from a map or layout window |
|
Returns the definition of an annotation |
|
Return the IDs of all annotations in a map or layout window |
|
Moves an annotation to a new location |
|
Modifies an existing annotation in a map or layout window |
©2025 Caliper Corporation | www.caliper.com |