TTMSFNCBloxControl.OnElementInsertReason Event
Occurs when an element is inserted into the diagram, and reports why it was inserted.
API unit family: TMSFNCBloxControl
Declaring type: TTMSFNCBloxControl
Type: TTMSFNCBloxElementInsertReasonEvent
Syntax
property OnElementInsertReason: TTMSFNCBloxElementInsertReasonEvent;
Remarks
Unlike OnElementInsert, this event distinguishes a genuinely new element (eirNew) from an element that is recreated as a side effect of loading a diagram (eirLoad), performing an undo (eirUndo) or redo (eirRedo) step, or pasting from the clipboard (eirPaste). In the latter cases, the element's persisted properties (such as StringData) are already restored before this event fires.