rvico TRichView Reference | TRichView

TCustomRichView.GetItemTag

Top  Previous  Next

Returns tag of the ItemNo-th item

function GetItemTag(ItemNo: Integer): Integer;

Parameter:

ItemNo – index of the item. Items are indexed from 0 to ItemCount-1. Items of subdocuments (table cells) are not included in the items range of the main document; for items in cells, use Cell.GetRVData.GetItemTag.

If tags are pointers to dynamically allocated strings (rvoTagsArePChars in Options), this function returns a pointer to this string (you can convert the returned value to PChar), not to a copy of it, so you should not free it.

Use SetItemTag to change tag of item.

 

See also methods:

SetItemTag.

See also method of TRichViewEdit:

GetCurrentTag.

See also:

RichView items' "tags".


RichView © Sergey Tkachenko