This project is read-only.

How to add annotations? Collection has no add() method?

Topics: User Forum
Jan 21, 2015 at 6:43 AM
Hi everyone, I'd like to start working with ScintillaNET annotations, but I can't figure out how.

I'm struggling to learn how to add an annotation to the ScintillaNET control, since the annotations collection doesn't seem to have an add() method, and there seems to be no other mechanism in place.

I've set the Annotations visibility to standard. Could you please let me know the process for creating annotations?

Thanks in advance!
Jan 27, 2015 at 5:55 PM
Simply get the annotation for the line you want. If it does not exists it will be created automatically:

Annotation annotation = scintilla.Annotations[14];

You need to enable the annotations first:

scintilla.Annoations.Visibility = AnnotationsVisibility.Standard;