By reporting abuse, a moderator will be asked to review the content of this interaction to take further action, if necessary.
documentViewer.SearchOptions.Term = "red four wheels petrol"; documentViewer.SearchOptions.MatchOptions = MatchOptions.MatchAnyWord;
Are you sure you want to ban this user?
Improved: When using DocumentViewerMatchOptions.MatchAnyWord, now the quotation marks can be used to specify phrasesinside a query that is set via DocumentViewerSearchOptions.Term.For example;
red "four wheels" petrol will match red or four wheels or petrol or red four wheels petrol
red ""four wheels"" petrol will match red or "four wheels" or petrol or red "four wheels" petrol
documentViewer.SearchOptions.Term = "red \"four wheels\" petrol"; documentViewer.SearchOptions.MatchOptions = MatchOptions.MatchAnyWord; //If you have an array of phrases, you can surround them with quotation marks //and then join them with spaces to form a query: var phrases = new[] { "red", "four wheels", "petrol" }; var query = string.Join(" ", phrases.Select(p => $"\"{p}\"")); documentViewer.SearchOptions.Term = query; documentViewer.SearchOptions.MatchOptions = MatchOptions.MatchAnyWord;
Note that two consecutive quotation marks "" can be used to escape, i.e. to search for a quotation mark literally as ".The same feature can also be used in the Viewer's Find dialog.
Trouble logging in? Simply enter your email address in order to reset your password.
A code was sent to the recovery email address. Please provide the 6-digit code.
A code can be retrieved from your authentication app. Please provide the 6-digit code.
An email was sent to your recovery email address. If you need further assistance, please contact your system admin.