Class SearchManager
Represents a class used to manage search and replace shared across multiple documents.
public class SearchManager
- Inheritance
-
SearchManager
Properties
- DeclarationSearch
Gets a shared
SearchManager
object 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
ISearch
object 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
SearchManager
object.
Methods
- CanFindNext()
Indicates whether
ISearch
can look for the next occurrence of the text specified by previous search or it is only first attempt to search.
- CanFindNextSelected()
Indicates whether
ISearch
can look for the next occurrence of the selected text or it is the first attempt to search.
- CanFindPrevious()
Indicates whether
ISearch
can look for the previous occurrence of the text specified by previous search or it is only first attempt to search.
- CanFindPreviousSelected()
Indicates whether
ISearch
can 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
ISearch
content with specified options using specified regular expression.
- Done(ISearch)
Finishes search process for specified
ISearch
object.
- Find(ISearch, string, SearchOptions, Regex)
Searches for all occurrences of given text within content determined by
ISearch
object with specified options using specified regular expression.
- Find(string, SearchOptions, Regex, IList<IRange>)
Searches for all occurrences of given text within the current
ISearch
content 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
ISearch
object 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
ISearch
object 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
ISearch
object off the the incremental search state.
- GetTextToSearchAtCursor()
Returns word at the cursor position.
- IncrementalSearch(string, bool)
Finds given text incrementally.
- Init(ref ISearch, SearchOptions)
Initializes search with specified settings.
- InitSearchList(ref ISearch, SearchOptions)
Initializes list of files where search will be performed and raises
InitSearch
event with specified parameters.
- MarkAll(ISearch, string, SearchOptions, Regex, bool)
Marks all occurrences of specified string within text content determined by
ISearch
object with the bookmarks and moves to the last occurrence.
- NeedReplaceCurrent(out Match)
Indicates whether currently selected needs to be replaced.
- OnTextFound(ISearch)
Raises
TextFound
event with specifiedISearch
object.
- OnTextFound(string, string, SearchOptions, Regex, Match, Point, int, bool, out ISearch)
Raises
TextFound
event with specified parameters.
- Replace(string, string)
Searches for the first occurrence of given text within current
ISearch
content and if succeed replaces it by specified string.
- Replace(string, string, SearchOptions)
Searches for first occurrence given text within current
ISearch
content with specified options and if succeed replaces it by specified string.
- Replace(string, string, SearchOptions, Regex)
Searches for first occurrence given text within current
ISearch
content 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
ISearch
object 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
ISearch
object to the incremental search state.
- StartIncrementalSearch(bool)
Switches current
ISearch
object to the incremental search state.
- UpdateSearch(ISearch, bool)
Updates search engine.
Events
- CreateSharedSearch
Occurs when shared search should be created.
- GetSearch
Occurs when new
ISearch
is requested.
- InitSearch
Occurs when search initialized.
- SearchChanged
Occurs when
ISearch
was changed.
- TextFound
Occurs when some text was found.