MarkAll Method
MarkAll(String, Boolean)
When implemented by a class, marks all occurrences of specified string in the class text content by unnumbered bookmarks and moves to the last occurrence.
Declaration
int MarkAll(string text, bool clearPrevious)
Parameters
Type | Name | Description |
---|---|---|
String | text | Specifies text to mark. |
Boolean | clearPrevious | Indicates whether all unnumbered bookmarks should be removed from the bookmarks collection. |
Returns
Type | Description |
---|---|
Int32 | Number of found occurrences. |
MarkAll(String, SearchOptions, Boolean)
When implemented by a class, marks all occurrences of specified string in the class text content by unnumbered bookmarks and moves to the last occurrence.
Declaration
int MarkAll(string text, SearchOptions options, bool clearPrevious)
Parameters
Type | Name | Description |
---|---|---|
String | text | Specifies text to mark. |
SearchOptions | options | Specifies parameters of search. |
Boolean | clearPrevious | Indicates whether all unnumbered bookmarks should be removed from the bookmarks collection. |
Returns
Type | Description |
---|---|
Int32 | Number of found occurrences. |
MarkAll(String, SearchOptions, Regex, Boolean)
When implemented by a class, marks all occurrences of specified string in the class text content by unnumbered bookmarks and moves to the last occurrence.
Declaration
int MarkAll(string text, SearchOptions options, Regex expression, bool clearPrevious)
Parameters
Type | Name | Description |
---|---|---|
String | text | Specifies text to mark. |
SearchOptions | options | Specifies parameters of search. |
Regex | expression | Represents a regular expression to find text. |
Boolean | clearPrevious | Indicates whether all unnumbered bookmarks should be removed from the bookmarks collection. |
Returns
Type | Description |
---|---|
Int32 | Number of found occurrences. |