Edits an annotation (not a widget or a locked one) through its setters and redraws it; the appearance is regenerated after a
visual edit (colour, border width, interior colour) unless regenerateAppearance is false.
public bool Edit(AnnotationTarget target, Action<PdfAnnotation> edit, bool regenerateAppearance = true)
The annotation.
The edit.
Whether to call RegenerateAppearance() afterwards.
ISO 32000-2 §12.5.2 and §12.5.5.