SearchItem.cs 1.8 KB

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