TRVESearchOption, TRVESearchOptions Type

<< Click to display table of contents >>

TRVESearchOption, TRVESearchOptions Type

Unit [VCL/FMX] RVEdit / fmxRVEdit;

type

  TRVESearchOption = (rvseoMatchCase, rvseoDown, rvseoWholeWord,

    rvseoMultiItem, rvseoSmartStart, rvseoFromStored);

  TRVESearchOptions = set of TRVESearchOption;

Options for searching in TRichViewEdit, see TCustomRichViewEdit.SearchText.

Value

Meaning

rvseoMatchCase

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

rvseoDown

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

rvseoWholeWord

If included, the searched string matches only whole words.

rvseoMultiItem

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.

rvseoSmartStart

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 rvseoFromStored.

rvseoFromStored

If included, searching starts from the position of the last stored search result instead of the current selection or caret position. This option affects only cases when searching starts from a selection.