TRVSearchOption, TRVSearchOptions Types

<< Click to display table of contents >>

TRVSearchOption, TRVSearchOptions Types

Unit [VCL/FMX]: RVScroll / fmxRVScroll.

type

  TRVSearchOption = (rvsroMatchCase, rvsroDown, rvsroWholeWord,

    rvsroFromStart, rvsroMultiItem, rvsroSmartStart, 

    rvsroFromStored);

  TRVSearchOptions = set of TRVSearchOption;

Options for searching in RichView, see TCustomRichView.SearchText.

Value

Meaning

rvsroMatchCase

If included, a character case is taken into account when comparing strings.

rvsroDown

If included, the search is performed to the end of the document. If not included, it is performed to the top of the document.

rvsroWholeWord

If included, the searched string matches only whole words.

rvsroFromStart

If included, the search starts from the beginning/end of the document. If not included, it starts from the end of selection or the first/last visible item.

See also rvsroFromStored.

rvsroMultiItem

If included, the search can match substrings of several text items. If not included, the text is searched in each text item separately. For example, if the document contains the text Hello, the substring 'Hello' can be found only if this option is included, because 'He' and 'llo' belong to different items.

rvsroSmartStart

This option is used only when rvsroFromStart is not included.

If included, and a document fragment is selected, then:

when searching down, the search starts from the second selected character;

when searching up, the search starts from the last but one selected character

(selected characters are counted from the top of the document, the selection direction is ignored).

See also rvsroFromStored.

rvsroFromStored

If included, searching starts from the position of the last stored search result instead of the current selection. This option affects only cases when searching starts from a selection (but if you use this feature, include this option even in the first search that has rvsroFromStart option).