Home > Products > CSHTMLDiff Control > Documentation > User Guide
|
Find
|
Previous Top Next |
|
|
| Search for a text string in the current document.
|
|
|
| Syntax
|
|
|
| Function Find(searchString As String, [wholeWords As Boolean = True], [matchCase As Boolean = False]) As Boolean
|
|
|
| Return Value
|
|
|
| True if the search-string was found. False otherwise.
|
|
|
| Parameters
|
|
|
| searchString
|
| Specifes the text to search for.
|
|
|
| wholeWords
|
| Optional. Specify as True for whole words match only.
|
|
|
| matchCase
|
| Optional. Specify as True for a case-sensitive search.
|
|
|
| Remarks
|
|
|
| Performs a Find operation on the text displayed in the current document.
|
| If the text is found, it will be selected in the current view.
|
|
|
| This operation is available only after a valid call to DoDiff.
|
|
|
| Example
|
|
|
| Private Sub FindMyName_Click()
|
| ' perform a case-insensitivefind operation for whole words.
|
| Dim bFound As Boolean
|
|
|
| bFound = diffCtrl1.Find "John", True, False
|
|
|
| If bFound Then MsgBox "string was found"
|
|
|
| End Sub
|
|
|
| See Also
|
|
|
| FindNext, DoDiff
|
|
|
| Specifies
|