Compartilhar via


ITextSearchService2.FindForReplace Method

Include Protected Members
Include Inherited Members

Searches for the next occurrence of the search pattern and returns the result of replacing the search pattern with the replacement pattern.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method FindForReplace(SnapshotPoint, String, String, FindOptions, String%) Searches for the next occurrence of the search pattern and returns the result of replacing the search pattern with the replacement pattern.
Public method FindForReplace(SnapshotSpan, String, String, FindOptions, String%) Searches for the next occurrence of the search pattern and returns the result of replacing the search pattern with the replacement pattern.

Top

Remarks

This method does not perform actual edits. Consumers must create an ITextEdit to perform actual text replacement. This method is safe to execute on any thread.

See Also

Reference

ITextSearchService2 Interface

Microsoft.VisualStudio.Text.Operations Namespace