Editable Annotations
The annotations API allows you to mark any annotation as editable by setting isEditable true. Editable annotations can be selected and dragged, and some can be resized. This page describes how you can respond to a user's interaction with an annotation, and how to customise the style of the selected view of the annotation.
Annotation Interactions
All annotations have the following properties and events which can be used to run code on user interaction:
| AnnotationBase Property | Description |
|---|---|
| isEditable📘 | When true, an annotation is editable. It may be selected, dragged or resized. Individual behaviours can be controlled by the following properties. |
| isSelected📘 | Set true when an editable annotation is clicked. This causes the selection box and the drag points to be shown. These are known as the adorners. Setting this programatically is not advised |
| selectedChanged📘 | An event that is fired when isSelected changes. |
| dragStarted📘 / onDragStarted📘 | dragStarted is an event which fires on mouseDown of an editable annotation. This is fired by the call to onDragStarted which is overridden in various annotations to determine which dragging point is being used, setting the adornerDraggingPoint |