Changes main properties of the item of control type.
function SetControlInfo(ItemNo: Integer; const AName: TRVUnicodeString;
(changed in version 18)
ItemNo – index of the item. The item must be of control type (rvsComponent), otherwise the method raises ERichViewError exception. Items are indexed from 0 to ItemCount-1, GetItemStyle returns type of item. Items of subdocuments (table cells) are not included in the items range of the main document; for items in cells, use Cell.GetRVData.SetControlInfo.
AName – name of the item, any string without line break (CR, LF) characters. It can also be set using SetItemText method. This is not a Name property of the control!
AVAlign – vertical alignment of this item, see TRVVAlign for possible options.
Return value: "is reformatting needed? (i.e., is the new vertical align not equal to the old one?)"
Method type: viewer-style.
Note: As you can see, current version of TRichView does not allow to change the control itself.
RichView1.SetControlInfo(ItemNo, 'my control', rvvaBaseline, 'control tag');
See also methods:
See also properties:
See also methods of RichViewEdit: