rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.SetCurrentControlInfo

Top  Previous  Next

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

procedure SetCurrentControlInfo(const AName: TRVAnsiString;

  AVAlign: TRVVAlignconst ATag: TRVTag);

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

This method can be used if CurItemStyle returns rvsComponent.

Parameters:

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.

unicode Unicode note: names of non-text items are ANSI strings.

 

See also methods:

GetCurrentControlInfo;

SetControlInfoEd.

See also properties:

CurItemNo;

CurItemStyle.

See also:

Modifying RichView items;

Item types;

"Tags".


TRichView © trichview.com