[]
Finds and decorates all occurrences of a text string in the document asynchronously.
public Task<int?> FindAndDecorateAsync(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 |
|---|---|
| Task<int?> | The number of matches or null. |
Finds and decorates all the matches in the document asynchronously.
public Task FindAndDecorateAsync(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. |
| Type | Description |
|---|---|
| Task |