TCustomRichView.SetItemTag

<< Click to display table of contents >>

TCustomRichView.SetItemTag

Changing tag of the ItemNo-th item

procedure SetItemTag(ItemNo: Integer; const ATag: TRVTag);

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.SetItemTag.

Method type: viewerstyle viewer-style. Reformatting or repainting is not necessary.

 

Example

RichView1.SetItemTag(ItemNo, 'tag #1');

 

See also methods:

GetItemTag.

See also properties:

ItemCount.

See also methods of RichViewEdit:

SetItemTagEd;

SetCurrentTag.

See also:

Modifying RichView items;

Tags.