Open a ticket
Chat with us
Click or drag to resize

Setting available find options

Please note that application of the options described in this section depend on the initial set up explained here.

This is an example which show all available FindOptions properties and its default values.
If you are fine with the propertie's default value, you can omit it, otherwise set it to true.

C#
using PdfViewer = Terminalworks.PdfViewer.AspNetCore;

var options = new PdfViewer.Options {
  Find = new PdfViewer.FindOptions {
    CaseSensitive = false,
    HighlightAll = false,
    WholeWord = false
  }
};

This example shows how to have case sensitive search.

C#
using PdfViewer = Terminalworks.PdfViewer.AspNetCore;

var options = new PdfViewer.Options {
  Find = new PdfViewer.FindOptions {
    CaseSensitive = true
  }
};
Copyright © 2024 Terminalworks. All Rights Reserved