Skip to main content

TcxCustomRichEditProperties.OnQueryInsertObject Event

Allows you to perform any actions prior to placing an object into a rich edit control.

Declaration

property OnQueryInsertObject: TcxRichEditQueryInsertObjectEvent read; write;

Remarks

Fires when an object is about to be inserted into a rich edit control (as a result of an end-user actions, or when the rich editor’s InsertObject or PasteSpecial method is called). The OnQueryInsertObject event only fires if the rich editor’s Properties.AllowObjects property is True (object embedding is allowed).

Implement the OnQueryInsertObject event handler to prohibit placing certain objects into the rich edit control.

Sender specifies the rich edit control into which an object is to be inserted.

AAllowInsertObject specifies whether insertion is allowed.

ACLSID specifies the globally unique identifier of the object to be inserted.

See Also