MarkSubStringA, MarkSubStringW Functions
|Top Previous Next|
Marks all occurrences of s in rv.
rvmsoIgnoreCase, rvmsoWholeWords, rvmsoNormalize,
function MarkSubStringA(const s: TRVAnsiString; Color, BackColor: TColor;
All occurrences of s are marked with the specified Color and BackColor.
RVData may specify the document to process. If it is nil, the whole document in rv is processed (i.e. RVData = nil works like RVData = rv.RVData).
Options for the both functions:
Options for the both MarkSubStringW:
This operation is not an editing operation, it cannot be undone.
These functions are not used in RichViewActions. They are included in RichViewActions for a convenience.
Limitation: this function searches text in each text item separately.
•rvmsoIgnoreCase for Unicode text works only on WinNT-based systems (WinNT4, Win2000, WinXP and newer)
•rvmsoNormalize and rvmsoStripDiacritic work in Windows Vista and newer. For WinXP, it requires libraries from https://www.microsoft.com/en-us/download/details.aspx?id=734
RichViewActions © trichview.com