[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.FindAndDecorate

FindAndDecorate Method

FindAndDecorate(string, string, string, string)

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

Declaration
[Obsolete("This method is deprecated, please, use FindAndDecorateAsync instead.")]
public int? FindAndDecorate(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
int?

The number of matches or null.

FindAndDecorate(Regex, string, string, string)

Finds and decorates all the matches in the document.

Declaration
[Obsolete("This method is deprecated, please, use FindAndDecorateAsync instead.")]
public void FindAndDecorate(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.