TSRichViewEdit.GetFirstItemVisibleRV

<< Click to display table of contents >>

TSRichViewEdit.GetFirstItemVisibleRV

Returns the first visible item.

procedure GetFirstItemVisibleRV(var RVData: TCustomRVFormattedData;

  var ItemNo, OffsetInItem: Integer);

This function returns the position where the caret would be placed if the user clicked at the top left corner of TSRichViewEdit control's window.

RVData is a document (RichViewEdit.RVData, table cell, or cell inplace editor's RVData), ItemNo is an index of item in this document, OffsetInItem is a position inside this item.

See also:

GetLastItemVisibleRV