Class SearchManager
Represents a class used to manage search and replace shared across multiple documents.
public class SearchManager
- Inheritance
-
SearchManager
Constructors
Properties
- DeclarationSearch
Gets a shared
SearchManagerobject used to find declarations in the code.
- FirstSearch
Gets or sets a value indicating that text search is executed for the first time.
- GotoLineDialog
Gets or sets a dialog box that allows moving to a specific line index within Edit control.
- InCycledSearch
Gets or sets a value indicating whether search process should restart from the beginning when end of text is reached.
- InIncrementalSearch
Gets or sets a value indicating whether search is in incremental search state.
- IncrementalSearchString
Gets or sets text for the incremental search.
- IsReplace
Gets or sets a value indicating whether found text should be replaced.
- ReplaceText
Gets or sets text to replace.
- Search
Gets or sets
ISearchobject that performs text search.
- SearchDialog
Gets or sets a dialog box that allows user to search for the text.
- SearchLen
Represents length of the last found text.
- SearchOptions
Gets or sets a value that defines search and replace options.
- SearchPos
Gets or sets a value that represents position of the last found text.
- SearchSettings
Gets or sets a value that defines search dialog settings.
- SearchText
Gets or sets text to search.
- Shared
Gets or sets a value indicating whether search is shared across multiple documents.
- SharedSearch
Gets a shared
SearchManagerobject.
Methods
- CanFindNext()
Indicates whether
ISearchcan look for the next occurrence of the text specified by previous search or it is only first attempt to search.
- CanFindNextSelected()
Indicates whether
ISearchcan look for the next occurrence of the selected text or it is the first attempt to search.
- CanFindPrevious()
Indicates whether
ISearchcan look for the previous occurrence of the text specified by previous search or it is only first attempt to search.
- CanFindPreviousSelected()
Indicates whether
ISearchcan look for the previous occurrence of the selected text or it is the first attempt to search.
- CanSearchSelection(out string)
Returns whether search can be performed within selected text.
- DoFind(string, SearchOptions, Regex, bool, bool)
Searches for all occurrences of given text within current
ISearchcontent with specified options using specified regular expression.
- Done(ISearch)
Finishes search process for specified
ISearchobject.
- Find(ISearch, string, SearchOptions, Regex)
Searches for all occurrences of given text within content determined by
ISearchobject with specified options using specified regular expression.
- Find(string, SearchOptions, Regex, IList<IRange>)
Searches for all occurrences of given text within the current
ISearchcontent with specified options using specified regular expression.
- Find(string, SearchOptions, Regex, ref Point, out int, out Match)
Searches for all occurrences of given text within current
ISearchobject content with specified options using specified regular expression.
- FindNext()
Searches for the next occurrence of the text specified by previous search.
- FindNextSelected()
Searches for the next occurrence of the selected text.
- FindOrReplace(ISearch, string, string, SearchOptions, Regex)
Searches for first occurrence given text within content determined by
ISearchobject with specified options using specified regular expression and if succeed replaces it by specified string.
- FindPrevious()
Searches for the previous occurrence of the text specified by previous search.
- FindPreviousSelected()
Searches for the previous occurrence of the selected text.
- FindText(string, string, SearchOptions, Regex, out ISearch)
Searches for first occurrence of the given text within specified file with specified options using specified regular expression and if succeed replaces it by specified string.
- FinishIncrementalSearch()
Switches current
ISearchobject off the the incremental search state.
- GetTextToSearchAtCursor()
Returns word at the cursor position.
- IncrementalSearch(string, bool)
Finds given text incrementally.
- Init(ref ISearch, SearchOptions, string)
Initializes search with specified settings.
- InitSearchList(ref ISearch, SearchOptions, string)
Initializes list of files where search will be performed and raises
InitSearchevent with specified parameters.
- MarkAll(ISearch, string, SearchOptions, Regex, bool)
Marks all occurrences of specified string within text content determined by
ISearchobject with the bookmarks and moves to the last occurrence.
- NeedReplaceCurrent(out Match)
Indicates whether currently selected needs to be replaced.
- OnTextFound(ISearch)
Raises
TextFoundevent with specifiedISearchobject.
- OnTextFound(string, string, SearchOptions, Regex, Match, Point, int, bool, out ISearch)
Raises
TextFoundevent with specified parameters.
- Replace(string, string)
Searches for the first occurrence of given text within current
ISearchcontent and if succeed replaces it by specified string.
- Replace(string, string, SearchOptions)
Searches for first occurrence given text within current
ISearchcontent with specified options and if succeed replaces it by specified string.
- Replace(string, string, SearchOptions, Regex)
Searches for first occurrence given text within current
ISearchcontent with specified options using specified regular expression and if succeed replaces it by specified string.
- ReplaceAll(ISearch, string, string, SearchOptions, Regex, out int, out bool)
Replaces all occurrences of given text within text content determined by
ISearchobject by specified replaceWith string.
- ReplaceCurrent(string, SearchOptions, Match)
Replaces currently selected text.
- SearchCycled(string, SearchOptions, Regex, bool)
Performs cycled search.
- ShowNotFound(ISearch, string)
Shows message box dialog with specified parameters.
- StartIncrementalSearch()
Switches current
ISearchobject to the incremental search state.
- StartIncrementalSearch(bool)
Switches current
ISearchobject to the incremental search state.
- UpdateSearch(ISearch, bool)
Updates search engine.
Events
- CreateSharedSearch
Occurs when shared search should be created.
- GetSearch
Occurs when new
ISearchis requested.
- InitSearch
Occurs when search initialized.
- SearchChanged
Occurs when
ISearchwas changed.
- SearchResultsAvailable
Occurs when FindAll finish searching.
- TextFound
Occurs when some text was found.