AnnotParam.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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
  21. {
  22. get;
  23. set;
  24. }
  25. public virtual bool CopyTo(AnnotParam transfer)
  26. {
  27. if (transfer == null)
  28. {
  29. return false;
  30. }
  31. transfer.Content = Content;
  32. transfer.Author = Author;
  33. transfer.CreateTime = CreateTime;
  34. transfer.UpdateTime = UpdateTime;
  35. transfer.CurrentType = CurrentType;
  36. transfer.Locked = Locked;
  37. transfer.ClientRect = ClientRect;
  38. transfer.CurrentType = CurrentType;
  39. transfer.PageIndex = PageIndex;
  40. transfer.Transparency = Transparency;
  41. transfer.AnnotIndex = AnnotIndex;
  42. return true;
  43. }
  44. }
  45. }