PathEditParam.cs 680 B

1234567891011121314151617181920212223242526
  1. using ComPDFKit.Import;
  2. using ComPDFKit.PDFPage;
  3. namespace ComPDFKit.Tool
  4. {
  5. public class PathEditParam:PDFEditParam
  6. {
  7. public PathEditParam()
  8. {
  9. EditType = CPDFEditType.EditPath;
  10. }
  11. public CRect ClipRect { get; set; }
  12. public int Rotate { get; set; }
  13. public override bool CopyTo(PDFEditParam transfer)
  14. {
  15. PathEditParam pathTransfer = transfer as PathEditParam;
  16. if (pathTransfer == null || !base.CopyTo(pathTransfer))
  17. return false;
  18. pathTransfer.ClipRect = ClipRect;
  19. pathTransfer.Rotate = Rotate;
  20. return true;
  21. }
  22. }
  23. }