AnnotParam.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using ComPDFKit.Import;
  2. using ComPDFKit.PDFAnnotation;
  3. using System.Windows;
  4. namespace ComPDFKit.Tool
  5. {
  6. public class AnnotParam
  7. {
  8. public string Content { get; set; } = string.Empty;
  9. public string Author { get; set; } = string.Empty;
  10. public string CreateTime { get; set; } = string.Empty;
  11. public string UpdateTime { get; set; } = string.Empty;
  12. public C_ANNOTATION_TYPE CurrentType { get; set; }
  13. public bool Locked { get; set; }
  14. /// <summary>
  15. /// The rectangle of the annotation within the PDF (PDF DPI)
  16. /// </summary>
  17. public CRect ClientRect { get; set; }
  18. public int PageIndex { get; set; }
  19. public int AnnotIndex { get; set; }
  20. public byte Transparency { get; set; }
  21. public virtual bool CopyTo(AnnotParam transfer)
  22. {
  23. if (transfer == null)
  24. {
  25. return false;
  26. }
  27. transfer.Content = Content;
  28. transfer.Author = Author;
  29. transfer.CreateTime = CreateTime;
  30. transfer.UpdateTime = UpdateTime;
  31. transfer.CurrentType = CurrentType;
  32. transfer.Locked = Locked;
  33. transfer.ClientRect = ClientRect;
  34. transfer.CurrentType=CurrentType;
  35. transfer.PageIndex = PageIndex;
  36. transfer.Transparency = Transparency;
  37. transfer.AnnotIndex = AnnotIndex;
  38. return true;
  39. }
  40. }
  41. }