In particular, when the annotation loses focus, I would like to check if the text of the annotation contains a specific sub string and if not, I would like to add it programatically inside the annotation.
JPJean Philippe GagliardiJuly 17, 2019 01:22 PM
I really do not have a clue how to do this.
note: Sorry for multiple replies, I had a hard time with a (word or url not accepted in this forum thing...) my post was much longer...
ASAravindh Sathiyamoorthy Syncfusion Team July 18, 2019 08:44 AM
We do not have support to add the annotations directly in the UI through code behind. To view the changes in UI, we need to save and reloadthe PdfLoadedDocument object in the PdfViewerControl as mentioned in the below code snippet.
RectangleF rectangle = new RectangleF(left, top, width, height);
PdfRectangleAnnotation rectangleAnnot = new PdfRectangleAnnotation(rectangle, "Rectangle annotation");