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_Master.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;
///
/// 当前项的隐藏/显示状态
///
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);
}
}
///
/// 用于分组的的名称
///
public string ShowPageIndex
{
get { return "Page"+ (TextProperty.PageIndex + 1).ToString(); }
private set { }
}
///
/// Pro抄过来的,用于切换为数量的模式使用的,以防万一先放着
///
private int pageCount;
public int PageCount
{
get { return pageCount; }
set
{
SetProperty(ref pageCount, value);
}
}
}
}