SearchItem.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Media;
  9. namespace PDF_Office.Model.BOTA
  10. {
  11. public class TextBindProperty : BindableBase
  12. {
  13. public int PageIndex { get; set; }
  14. public string TextContent { get; set; }
  15. public Color HighLightColor { get; set; }
  16. public string SearchWord { get; set; }
  17. public Rect TextRect { get; set; }
  18. public int PageRotate { get; set; }
  19. private Visibility itemVisibility;
  20. /// <summary>
  21. /// 当前项的隐藏/显示状态
  22. /// </summary>
  23. public Visibility ItemVisibility
  24. {
  25. get { return itemVisibility; }
  26. set
  27. {
  28. SetProperty(ref itemVisibility, value);
  29. }
  30. }
  31. }
  32. public class SearchItem : BindableBase
  33. {
  34. private TextBindProperty textProperty;
  35. public TextBindProperty TextProperty
  36. {
  37. get { return textProperty; }
  38. set
  39. {
  40. SetProperty(ref textProperty, value);
  41. }
  42. }
  43. /// <summary>
  44. /// 用于分组的的名称
  45. /// </summary>
  46. public string ShowPageIndex
  47. {
  48. get { return "Page"+ (TextProperty.PageIndex + 1).ToString(); }
  49. private set { }
  50. }
  51. /// <summary>
  52. /// Pro抄过来的,用于切换为数量的模式使用的,以防万一先放着
  53. /// </summary>
  54. private int pageCount;
  55. public int PageCount
  56. {
  57. get { return pageCount; }
  58. set
  59. {
  60. SetProperty(ref pageCount, value);
  61. }
  62. }
  63. }
  64. }