Freigeben über


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

'Declaration
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

See Also

Reference

IIncrementalSearch Interface

Microsoft.VisualStudio.Text.IncrementalSearch Namespace