TSRichViewEdit.FindNextItem

<< Click to display table of contents >>

TSRichViewEdit.FindNextItem

Finds the location of the next item of the specified styles (types).

function FindNextItem(StyleNo: array of Integer; 

  var RVData: TCustomRVData; var ItemNo: Integer) : Boolean;

The search can be limited to the specified range of coordinates, see RangeSearch.

Input parameters:

StyleNo – a list of styles (types) for searching.

RVData, ItemNo – starting position for the search. The search starts from the next item. RVData is a document (RichViewEdit.RVData, table cell, or cell inplace editor's RVData; if the cell is edited, it must be an inplace editor's RVData), ItemNo is an index of item in this document.

Output parameters:

RVData, ItemNo – position of the found item. Valid only if the method returns True.

Return value:

True if found.

Example:

var

  RVData: TCustomRVData;

  ItemNo: Integer;

  ...

  // searching for the first image in the document

  RVData := SRichViewEdit1.RichViewEdit.RVData;

  ItemNo := -1;

  if SRichViewEdit1.FindNextItem(

    [rvsPicture, rvsHotPicture, rvsBullet, rvsHotspot],

    RVData, ItemNo) then

    ...

See also:

FindPriorItem

NextCurItem

FindNextCheckpoint

FindNextHyperlink