[]
Finds and decorates all occurrences of a text string in the document.
[Obsolete("This method is deprecated, please, use FindAndDecorateAsync instead.")]
public int? FindAndDecorate(string text, string tags = null, string styles = null, string className = null)
| 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. |
| Type | Description |
|---|---|
| int? | The number of matches or null. |
Finds and decorates all the matches in the document.
[Obsolete("This method is deprecated, please, use FindAndDecorateAsync instead.")]
public void FindAndDecorate(Regex regex, string tags = null, string styles = null, string className = null)
| 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. |