[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.FindAndDecorateAsync

FindAndDecorateAsync Method

FindAndDecorateAsync(string, string, string, string)

Finds and decorates all occurrences of a text string in the document asynchronously.

Declaration
public Task<int?> FindAndDecorateAsync(string text, string tags = null, string styles = null, string className = null)
Parameters
Type Name Description
string text

Text to find and decorate.

string tags

Tags, comma delimited, to decorate each text instance.

string styles

CSS style value to decorate each text instance.

string className

A css class name to use for the selected tag.

Returns
Type Description
Task<int?>

The number of matches or null.

FindAndDecorateAsync(Regex, string, string, string)

Finds and decorates all the matches in the document asynchronously.

Declaration
public Task FindAndDecorateAsync(Regex regex, string tags = null, string styles = null, string className = null)
Parameters
Type Name Description
Regex regex

Regular expression to match and decorate.

string tags

Tags, comma delimited, to decorate each text instance.

string styles

CSS style value to decorate each text instance.

string className

A css class name to use for the selected tag.

Returns
Type Description
Task