CefPrintDialogCallback.cs 828 B

123456789101112131415161718192021222324252627282930
  1. namespace Xilium.CefGlue
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Runtime.InteropServices;
  7. using Xilium.CefGlue.Interop;
  8. /// <summary>
  9. /// Callback interface for asynchronous continuation of print dialog requests.
  10. /// </summary>
  11. public sealed unsafe partial class CefPrintDialogCallback
  12. {
  13. /// <summary>
  14. /// Continue printing with the specified |settings|.
  15. /// </summary>
  16. public void Continue(CefPrintSettings settings)
  17. {
  18. cef_print_dialog_callback_t.cont(_self, settings.ToNative());
  19. }
  20. /// <summary>
  21. /// Cancel the printing.
  22. /// </summary>
  23. public void Cancel()
  24. {
  25. cef_print_dialog_callback_t.cancel(_self);
  26. }
  27. }
  28. }