[]
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)
<Obsolete("This method is deprecated, please, use FindAndDecorateAsync instead.")>
Public Function FindAndDecorate(text As String, Optional tags As String = Nothing, Optional styles As String = Nothing, Optional className As String = Nothing) As Integer?
| 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)
<Obsolete("This method is deprecated, please, use FindAndDecorateAsync instead.")>
Public Sub FindAndDecorate(regex As Regex, Optional tags As String = Nothing, Optional styles As String = Nothing, Optional className As String = Nothing)
| 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. |