IListViewItem.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // ***********************************************************************
  2. // Assembly : HZH_Controls
  3. // Created : 08-22-2019
  4. //
  5. // ***********************************************************************
  6. // <copyright file="IListViewItem.cs">
  7. // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
  8. // </copyright>
  9. //
  10. // Blog: https://www.cnblogs.com/bfyx
  11. // GitHub:https://github.com/kwwwvagaa/NetWinformControl
  12. // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
  13. //
  14. // If you use this code, please keep this note.
  15. // ***********************************************************************
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Linq;
  19. using System.Text;
  20. namespace HZH_Controls.Controls
  21. {
  22. /// <summary>
  23. /// Interface IListViewItem
  24. /// </summary>
  25. public interface IListViewItem
  26. {
  27. /// <summary>
  28. /// 数据源
  29. /// </summary>
  30. /// <value>The data source.</value>
  31. object DataSource { get; set; }
  32. /// <summary>
  33. /// 选中项事件
  34. /// </summary>
  35. event EventHandler SelectedItemEvent;
  36. /// <summary>
  37. /// 选中处理,一般用以更改选中效果
  38. /// </summary>
  39. /// <param name="blnSelected">是否选中</param>
  40. void SetSelected(bool blnSelected);
  41. }
  42. }