|Top Previous Next|
An editing-style method for changing properties of the ItemNo-th item of RichView, if this item is "inserted control".
procedure SetControlInfoEd(ItemNo: Integer;
const ATag: TRVTag);
(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, activate inplace-editor, select the proper item in the cell (SelSelectionBounds), and call SetControlInfoEd of this inplace-editor. Alternatively, you can use SetCurrentControlInfo.
AName – name of the item, any string without line break (CR, LF) characters. It can also be set using SetItemTextEdW method. This is not a Name property of the control!
AVAlign – vertical alignment of this item, see TRVVAlign for possible options.
When possible, use SetCurrentControlInfo instead of this method.
See also methods of TCustomRichView:
See also methods:
See also properties:
TRichView © trichview.com