[]
Represents find text parameters.
public class FindTextParams
Initializes a new instance of the FindTextParams class.
public FindTextParams(string text, bool wholeWord, bool matchCase, ViewState viewState, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true, bool regex = false)
text stringThe text to find.
wholeWord boolIndicates whether to match whole words only.
matchCase boolIndicates whether to match case.
viewState ViewStateThe ViewState object.
dpiX floatThe horizontal resolution used to calculate bounds of the found text on the page.
dpiY floatThe vertical resolution used to calculate bounds of the found text on the page.
ignoreErrors boolIndicates whether to ignore errors in PDF content stream if possible.
regex boolIndicates whether to interpret text as a regular expression.
Initializes a new instance of the FindTextParams class.
public FindTextParams(string text, bool wholeWord, bool matchCase, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true, bool regex = false)
text stringThe text to find.
wholeWord boolIndicates whether to match whole words only.
matchCase boolIndicates whether to match case.
dpiX floatThe horizontal resolution used to calculate bounds of the found text on the page.
dpiY floatThe vertical resolution used to calculate bounds of the found text on the page.
ignoreErrors boolIndicates whether to ignore errors in PDF content stream if possible.
regex boolIndicates whether to interpret text as a regular expression.
Gets the horizontal resolution used to calculate bounds of the found text on the page.
public float DpiX { get; }
Gets the vertical resolution used to calculate bounds of the found text on the page.
public float DpiY { get; }
Gets a value indicating whether to ignore errors in PDF content stream if possible.
The default is true.
public bool IgnoreErrors { get; }
Gets a value indicating whether to match case.
public bool MatchCase { get; }
Gets a value indicating whether the Text should be interpreted as a regular expression.
public bool Regex { get; }
Gets the text to find.
public string Text { get; }
Gets the ViewState object.
public ViewState ViewState { get; }
Gets a value indicating whether to match whole words only.
public bool WholeWord { get; }
Creates a new FindTextParams object with the Regex property set to true.
public static FindTextParams CreatRegex(string pattern, bool matchCase = false, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
pattern stringThe Regex pattern to search.
matchCase boolIndicates whether to match case.
dpiX floatThe horizontal resolution used to calculate bounds of the found text on the page.
dpiY floatThe vertical resolution used to calculate bounds of the found text on the page.
ignoreErrors boolIndicates whether to ignore errors in PDF content stream if possible.