Enhanced C#
Language of your choice: library documentation
|
This class finds occurrances of a search string in a text editor's IDocument... it's like Find box without a GUI. More...
This class finds occurrances of a search string in a text editor's IDocument... it's like Find box without a GUI.
Public fields | |
bool | MatchCase |
bool | MatchWholeWordOnly |
Properties | |
IDocument | Document [get, set] |
bool | HasScanRegion [get] |
int | BeginOffset [get] |
Begins the start offset for searching More... | |
int | EndOffset [get] |
Begins the end offset for searching More... | |
string | LookFor [get, set] |
Public Member Functions | |
void | SetScanRegion (ISelection sel) |
Sets the region to search. The region is updated automatically as the document changes. More... | |
void | SetScanRegion (int offset, int length) |
Sets the region to search. The region is updated automatically as the document changes. More... | |
void | ClearScanRegion () |
void | Dispose () |
TextRange | FindNext (int beginAtOffset, bool searchBackward, out bool loopedAround) |
Finds next instance of LookFor, according to the search rules (MatchCase, MatchWholeWordOnly). More... | |
|
inline |
Finds next instance of LookFor, according to the search rules (MatchCase, MatchWholeWordOnly).
beginAtOffset | Offset in Document at which to begin the search |
If there is a match at beginAtOffset precisely, it will be returned.
References TextEditor.TextEditorSearcher.BeginOffset, and TextEditor.TextEditorSearcher.EndOffset.
|
inline |
Sets the region to search. The region is updated automatically as the document changes.
|
inline |
Sets the region to search. The region is updated automatically as the document changes.
|
get |
Begins the start offset for searching
Referenced by TextEditor.TextEditorSearcher.FindNext().
|
get |
Begins the end offset for searching
Referenced by TextEditor.TextEditorSearcher.FindNext().