RadioButtonParam.cs 757 B

123456789101112131415161718192021222324252627282930313233
  1. using ComPDFKit.PDFAnnotation;
  2. using ComPDFKit.PDFAnnotation.Form;
  3. namespace ComPDFKit.Tool
  4. {
  5. public class RadioButtonParam:WidgetParm
  6. {
  7. public RadioButtonParam ()
  8. {
  9. CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
  10. WidgetType = C_WIDGET_TYPE.WIDGET_RADIOBUTTON;
  11. }
  12. public C_CHECK_STYLE CheckStyle { get; set; }
  13. public bool IsChecked { get; set; }
  14. public override bool CopyTo(AnnotParam transfer)
  15. {
  16. RadioButtonParam radioTransfer = transfer as RadioButtonParam;
  17. if (radioTransfer == null)
  18. {
  19. return false;
  20. }
  21. if (!base.CopyTo(radioTransfer))
  22. {
  23. return false;
  24. }
  25. radioTransfer.CheckStyle = CheckStyle;
  26. radioTransfer.IsChecked = IsChecked;
  27. return true;
  28. }
  29. }
  30. }