TSRichViewEdit.PriorCurItem

<< Click to display table of contents >>

TSRichViewEdit.PriorCurItem

Selects the previous item of one of the specified styles (types).

function NextCurItem(StyleNo: array of Integer) : Boolean;

StyleNo – a list of styles (types) for searching. If this array is empty, this method searches for any item.

The search is started from the item before the caret position (RichViewEdit.TopLevelEditor.RVData, RichViewEdit.TopLevelEditor.CurItemNo).

If an item is found, the method selects it and returns True.

This method can be used for the command "Find Picture" and "Find Table" in the horizontal toolbar.

See also:

NextCurItem