Spire.PDFViewer 8.2.6 がリリースされました。本バージョンでは、「前を検索」と「次を検索」機能が、Form、WPF、MAUIで新たに追加されました。また、pdfDocumentViewer1.SearchText() メソッドは非推奨となり、代わりに pdfDocumentViewer1.Find() メソッドが使用されます。詳細は以下のとおりです。
変更内容一覧
| カテゴリー | ID | 説明 |
| 新機能 | SPIREPDFVIEWER-616 | 「前を検索」と「次を検索」機能が、Form、WPF、MAUIで新たに追加されました。pdfDocumentViewer1.SearchText() メソッドは非推奨となり、pdfDocumentViewer1.Find() に置き換えられました。
private void Form1_Load(object sender, EventArgs e)
{
string pdfDoc = @"test.pdf";
if (File.Exists(pdfDoc))
{
this.pdfDocumentViewer1.LoadFromFile(pdfDoc);
this.pdfDocumentViewer1.Find("FindedText", Color.Empty);
}
}
private void before_Click(object sender, EventArgs e)
{
this.pdfDocumentViewer1.FindPrevious();
}
private void next_Click(object sender, EventArgs e)
{
this.pdfDocumentViewer1.FindNext();
} |
Spire.PDFViewer 8.2.6 のダウンロードはこちら:






