ImageEn, unit iexRichEdit |
|
TIERichEdit.FindText
Declaration
function FindText(const SearchStr: string; StartPos, Length: Integer; Options: TIESearchTypes): Integer;
Description
Returns the position of the search string, where 0 is the position of the first character in the rich edit control (not the first position n the search range).
If the search string is not found in the specified range the result is -1.
StartPos and Length specify the range of text to search for the SearchStr value. Only the text in the range starting at the position StartPos and continuing through the next Length positions will be searched.
Options:
Item | Description |
stWholeWord | Search only for whole words that match the search string |
stMatchCase | Perform a case-sensitive search operation |
stBackward | Search backward instead of forward |
stSetSelection | Select the found text and scroll it into view |
Rich Edit Identifier: EM_FINDTEXTEX