TE Edit Control .NET Core / .NET Framework Help
Product page

CreateEmbeddedControl

This event is sent when an embedded control is encountered during RTF input.

tern.CreateEmbeddedControl+= new Tern.EventCreateEmbeddedControl(CreateEmbeddedControl);

protected void CreateEmbeddedControl(object Sender, 
                                     string ClassName, int id)
{
     Control ctl=null;
     if (ClassName=="TextBox") {
        TextBox tb=new TextBox();
        if (id==1) tb.Text="Name";
        else       tb.Text="Address";
        return (Control)tb;
     }
     return ctl;
}

Your application would use the event to recreate the embedded control which was originally inserted into the input RTF file using the TerInsertControl method. The value of the 'id' parameter is the same the 'id' parameter value specified when calling the TerInsertControl method.