PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Delete A annotaion ? https://forum.pdfsharp.net/viewtopic.php?f=2&t=1148 |
Page 1 of 1 |
Author: | ahmedsobhy [ Thu Apr 15, 2010 7:13 am ] |
Post subject: | Delete A annotaion ? |
Hi EveryOne, the problem is the attached code always the Parent of annotation is equal null so what i have to do to delete the annotation Please Help... if (document.Pages[0].Annotations.Count > 1) { if (document.Pages[0].Annotations[0].Parent != null) { for (int ItemCount = 0; ItemCount < document.Pages [0].Annotations.Count; ItemCount++) { document.Pages[0].Annotations[0].Parent.Remove(document.Pages[0].Annotations[ItemCount]); } } } |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |