findMarkAll(match: String; range: Integer; direction: Integer; caseSensitive: Boolean; wholeWord: Boolean; wordStart: Boolean; interpretation: Integer; markNumber: Integer; clearMarks: Boolean): Integer;
The findMarkAll method of the JadeTextEdit class searches for the match text within the text editor, using the parameters specified in the following table.
The specified linemark is set on each line where the match text is found.
Parameter | Description |
---|---|
match | Mandatory value, which specifies the text to be located. |
range | Range of search. One of FIND_RANGE_ALL (0), FIND_RANGE_CARET (1), or FIND_RANGE_SELECTION (2). |
direction | Direction in which to search. Specify -1 to search backwards towards the top of the text editor, zero (0) or +1 to search forwards towards the bottom of the text editor. |
caseSensitive | If true, finds only text with the matching case. If false (the default), the search is case-insensitive. |
wholeWord | If true, finds only whole words. If false (the default), finds parts of words that satisfy the search. |
wordStart | If true, the match must occur at the start of a word (that is, the matched text must be preceded by a non-word character). |
interpretation | One of the following values, represented by JadeTextEdit class constants. |
|
|
|
|
|
|
|
|
For more details about interpretation, see the find method. | |
markNumber | Mark number set on each line in which the match text is found. |
clearMarks | If true, all instances of the linemark markNumber parameter value are removed from the text editor before the find action is performed. If false, linemarks are not cleared. |
You can use the doLinemarker method to navigate between linemarks.
The findMarkAll method returns the number of matches. If no match was found, this method returns zero (0).
The code fragment in the following example shows the use of the findMarkAll method to place linemark 1 on all lines that contain the characters "fred".
count := self.theJadeTextEdit.findMarkAll("fred", 0 /*range*/, 1 /*direction*/, false /*case-insensitive*/, false /*wholeWord*/, false /*wordStart*/, 0 /*interpretation*/, 1, true);