IUIControl.4.Render.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System.Drawing;
  2. using System.Windows.Forms;
  3. namespace Microsoft.Windows.Forms
  4. {
  5. partial interface IUIControl
  6. {
  7. /// <summary>
  8. /// 获取刷新操作是否被挂起
  9. /// </summary>
  10. bool UpdateSuspended
  11. {
  12. get;
  13. }
  14. /// <summary>
  15. /// 渲染控件和子控件
  16. /// </summary>
  17. /// <param name="e">数据</param>
  18. void RenderCore(PaintEventArgs e);
  19. /// <summary>
  20. /// 挂起刷新 UI
  21. /// </summary>
  22. void BeginUpdate();
  23. /// <summary>
  24. /// 恢复刷新 UI
  25. /// </summary>
  26. void EndUpdate();
  27. /// <summary>
  28. /// 恢复刷新 UI,可以选择强制刷新
  29. /// </summary>
  30. /// <param name="forceUpdate">若要执行刷新为 true,否则为 false</param>
  31. void EndUpdate(bool forceUpdate);
  32. /// <summary>
  33. /// 使控件工作区无效
  34. /// </summary>
  35. void Invalidate();
  36. /// <summary>
  37. /// 使控件工作区无效
  38. /// </summary>
  39. /// <param name="invalidateChildren">使控件所在的 Win32 窗口的子控件无效为 true,否则为 false</param>
  40. void Invalidate(bool invalidateChildren);
  41. /// <summary>
  42. /// 使控件矩形无效
  43. /// </summary>
  44. /// <param name="rc">无效矩形</param>
  45. void Invalidate(Rectangle rc);
  46. /// <summary>
  47. /// 使控件矩形无效
  48. /// </summary>
  49. /// <param name="rc">无效矩形</param>
  50. /// <param name="invalidateChildren">使控件所在的 Win32 窗口的子控件无效为 true,否则为 false</param>
  51. void Invalidate(Rectangle rc, bool invalidateChildren);
  52. /// <summary>
  53. /// 重绘所在 Win32 窗口的无效区域
  54. /// </summary>
  55. void Update();
  56. /// <summary>
  57. /// 立即刷新所在 Win32 窗口和其子控件
  58. /// </summary>
  59. void Refresh();
  60. }
  61. }