TCustomRichViewEdit.InsertControl

<< Click to display table of contents >>

TCustomRichViewEdit.InsertControl

Inserts Delphi/C++Builder control in the position of caret.

function InsertControl(const Name: TRVUnicodeString; ctrl: TControl;

  VAlign: TRVVAlign): Boolean;

(changed in version 18)

Parameters:

Name name of this control item, any string. Name must not contain CR and LF characters. TRichView does not use item names itself, they are for your own use. Do not confuse with ctrl.Name property.

ctrl control to insert. You should create control but should not destroy it (RichViewEdit will do it for you).

VAlign vertical align of this control, relative to its line, see TRVVAlign for possible values.

 

Method type: editstyle editing-style method for insertion.

Return value

True if the insertion was successful (it can fail due to protection, or when inserting in table having multicell selection)

See also methods of TCustomRichView:

AddControl;

See also:

Inserting items in position of caret;

Item types.