rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.GetCurrentItem

Top  Previous  Next

Returns object representing item at position of caret.

function GetCurrentItem: TCustomRVItemInfo;

(introduced in version 1.4)

This method is usually used when working with tables, labels, sequences, footnotes, endnotes, references to notes.

The table object is returned if the caret is to the left or to the right of the table, or if several table cells are selected. If the caret is inside table cell, this method returns item contained in this cell. To get the table in this case, use GetCurrentItemEx instead of GetCurrentItem.

 

This method must be called only when the document is formatted.

When called for an empty editor (i.e. ItemCount=0), the method returns nil.

 

See also methods:

GetCurrentItemEx;

InsertItem;

GetItem.

See also properties:

CurItemNo;

CurItemStyle.

See also:

Obtaining RichView items;

Tables in RichView.


TRichView © trichview.com