Class TextHighlighter
This class will highlight every instance of a particular string on all visible pages.
Inheritance
System.Object
TextHighlighter
Namespace: pdftron.PDF.Tools.Controls
Assembly: pdftron.PDF.Tools.dll
Syntax
public class TextHighlighter : object
Constructors
TextHighlighter(PDFViewCtrl, String)
Creates a new TextHighlighter associated with a PDFViewCtrl, highlighting every occurence of searchString
Declaration
public TextHighlighter(PDFViewCtrl pdfViewCtrl, string searchString)
Parameters
Type | Name | Description |
---|---|---|
PDFViewCtrl | pdfViewCtrl | |
System.String | searchString |
TextHighlighter(PDFViewCtrl, String, TextHighlighter.TextHighlighterSettings)
Declaration
public TextHighlighter(PDFViewCtrl pdfViewCtrl, string searchString, TextHighlighter.TextHighlighterSettings settings)
Parameters
Type | Name | Description |
---|---|---|
PDFViewCtrl | pdfViewCtrl | |
System.String | searchString | |
TextHighlighter.TextHighlighterSettings | settings |
Properties
HighlightColor
Declaration
public Color HighlightColor { set; }
Property Value
Type | Description |
---|---|
Windows.UI.Color |
Methods
Detach()
This must be called before the text highlighter goes out of scope. Otherwise, it will hang on to the PDFViewCtrl
Declaration
public void Detach()