12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using ComPDFKitViewer.PdfViewer;
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Media;
- namespace PDF_Office.Model.BOTA
- {
- public class TextBindProperty : BindableBase
- {
- public int PageIndex { get; set; }
- public string TextContent { get; set; }
- public Color HighLightColor { get; set; }
- public string SearchWord { get; set; }
- public Rect TextRect { get; set; }
- public int PageRotate { get; set; }
- public TextSearchItem SearchItem { get; set; }
- private Visibility itemVisibility;
- /// <summary>
- /// 当前项的隐藏/显示状态
- /// </summary>
- public Visibility ItemVisibility
- {
- get { return itemVisibility; }
- set
- {
- SetProperty(ref itemVisibility, value);
- }
- }
- }
- public class SearchItem : BindableBase
- {
- private TextBindProperty textProperty;
- public TextBindProperty TextProperty
- {
- get { return textProperty; }
- set
- {
- SetProperty(ref textProperty, value);
- }
- }
- /// <summary>
- /// 用于分组的的名称
- /// </summary>
- public string ShowPageIndex
- {
- get { return "Page"+ (TextProperty.PageIndex + 1).ToString(); }
- private set { }
- }
- /// <summary>
- /// Pro抄过来的,用于切换为数量的模式使用的,以防万一先放着
- /// </summary>
- private int pageCount;
- public int PageCount
- {
- get { return pageCount; }
- set
- {
- SetProperty(ref pageCount, value);
- }
- }
- }
- }
|