The TextSearchColorSettings
module is used to set the settings for the color of the text search highlight.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
let viewer: PdfViewer = new PdfViewer();
// Change the text search color settings.
viewer.textSearchColorSettings = {
searchHighlightColor: '#4070FF',
searchColor: '#FF4081'
};
viewer.appendTo("#pdfViewer");
string
Gets or Sets the color of the other occurrence of the text searched string.
string
Gets or Sets the color of the current occurrence of the text searched string.