IIncrementalSearch.DeleteCharAndSearch Method
Removes the last character of the current search term and updates the search results based on the new term.
Namespace: Microsoft.VisualStudio.Text.IncrementalSearch
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'宣言
Function DeleteCharAndSearch As IncrementalSearchResult
IncrementalSearchResult DeleteCharAndSearch()
IncrementalSearchResult DeleteCharAndSearch()
abstract DeleteCharAndSearch : unit -> IncrementalSearchResult
function DeleteCharAndSearch() : IncrementalSearchResult
Return Value
Type: Microsoft.VisualStudio.Text.IncrementalSearch.IncrementalSearchResult
An IncrementalSearchResult that indicates whether the new search term was found and whether the search wrapped around the beginning or end of the buffer.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The search string is empty. To avoid this exception, check the SearchString property before calling this method. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.