<< Click to display table of contents >>


Modifies the item at the position of caret, if this item is an inserted control.

procedure SetCurrentControlInfo(const AName: TRVUnicodeString;

  AVAlign: TRVVAlignconst ATag: TRVTag);

(changed in version 18)

SetCurrentControlInfo(...) is equivalent to TopLevelEditor.SetControlInfoEd(TopLevelEditor.CurItemNo, ...).

This method can be used if CurItemStyle returns rvsComponent.


AName name of the item, any string without line break (CR, LF) characters. It can also be set using SetCurrentItemText method. This is not a Name property of the control!

AVAlign – vertical alignment of this item, see TRVVAlign for possible options.

ATag tag of the item. Do not confuse with Tag property of the control! You can use value returned by GetCurrentControlInfo or GetCurrentTag for this item. The tag can also be set by SetCurrentTag method.


Method type: editstyle editing-style.

Additional item properties are assigned by the methods SetCurrentItemExtraIntProperty and SetCurrentItemExtraStrProperty.


See also methods:



See also properties:



See also:

Modifying RichView items;

Item types;