public override PSPDFAnnotation[] AnnotationsForPage (uint page) { lock (this.locker) { // Add one additional note annotation on each page. if (!this.pageAnnots.ContainsKey (page)) { var addAnnot = new KSNoteAnnotation (true) { Page = page, Contents = "Custom Annot on Page " + page, BoundingBox = new RectangleF(278f, 406f, 32f, 32f), Color = UIColor.Red, }; this.AddAnnotationsToCache(page, addAnnot); // Dim all build int annotations. this.pageAnnots[page].AddRange(base.AnnotationsForPage (page).Select(embeddedAnnot => { embeddedAnnot.Editable = false; embeddedAnnot.Alpha = 0.2f; return embeddedAnnot; })); } return this.pageAnnots[page].ToArray(); } }
public override PSPDFAnnotation[] AnnotationsForPage(uint page) { lock (this.locker) { // Add one additional note annotation on each page. if (!this.pageAnnots.ContainsKey(page)) { var addAnnot = new KSNoteAnnotation(true) { Page = page, Contents = "Custom Annot on Page " + page, BoundingBox = new RectangleF(278f, 406f, 32f, 32f), Color = UIColor.Red, }; this.AddAnnotationsToCache(page, addAnnot); // Dim all build int annotations. this.pageAnnots[page].AddRange(base.AnnotationsForPage(page).Select(embeddedAnnot => { embeddedAnnot.Editable = false; embeddedAnnot.Alpha = 0.2f; return(embeddedAnnot); })); } return(this.pageAnnots[page].ToArray()); } }