Table of Contents

Method FindText

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

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.

public virtual bool FindText(string fileName, string text, SearchOptions options, Regex expression, out ISearch search)

Parameters

fileName string

Name of the file to find the text.

text string

Text to find.

options SearchOptions

Represents options to search text.

expression Regex

Represents a regular expression to find text.

search ISearch

Receives ISearch object where text was found.

Returns

bool

True if succeed; otherwise false.

FindText(string, ITextStrings, string, SearchOptions, Regex, out ISearch)

protected virtual bool FindText(string fileName, ITextStrings strings, string text, SearchOptions options, Regex expression, out ISearch search)

Parameters

fileName string
strings ITextStrings
text string
options SearchOptions
expression Regex
search ISearch

Returns

bool

FindText(string, ITextStrings, string, SearchOptions, Regex, out ISearch, Point)

protected virtual bool FindText(string fileName, ITextStrings strings, string text, SearchOptions options, Regex expression, out ISearch search, Point position)

Parameters

fileName string
strings ITextStrings
text string
options SearchOptions
expression Regex
search ISearch
position Point

Returns

bool