StickyNoteParam.cs 864 B

123456789101112131415161718192021222324252627282930313233343536
  1. using ComPDFKit.PDFAnnotation;
  2. using System.Windows.Media;
  3. namespace ComPDFKit.Tool
  4. {
  5. public class StickyNoteParam:AnnotParam
  6. {
  7. public StickyNoteParam ()
  8. {
  9. CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_TEXT;
  10. }
  11. public byte[] StickyNoteColor { get; set; }
  12. public override bool CopyTo(AnnotParam transfer)
  13. {
  14. StickyNoteParam stickynoteTransfer = transfer as StickyNoteParam;
  15. if (stickynoteTransfer == null)
  16. {
  17. return false;
  18. }
  19. if (!base.CopyTo(stickynoteTransfer))
  20. {
  21. return false;
  22. }
  23. if(StickyNoteColor != null)
  24. {
  25. stickynoteTransfer.StickyNoteColor = (byte[])StickyNoteColor.Clone();
  26. }
  27. return true;
  28. }
  29. }
  30. }