Depending on the options you have set, the find-and-replace operation looks for the next string, or every string, that matches the text in the Find field. This text is replaced with the text you entered in the Replace With field.
The default search direction is forward, but you can also set the options to search backwards in the file.