THTMLDoc.CreateComponent Method
Description
Inserts HTML content, allowing the addition of regular HTML elements or custom WebComponents.
Syntax
procedure CreateComponent(const Id: WideString; const Html: WideString; ReplaceWnd: Int64); safecall;
Parameters
| Parameter | Type | Description |
|---|---|---|
Id |
WideString | Identifier assigned to the main element being inserted |
Html |
WideString | The HTML fragment to add |
ReplaceWnd |
Int64 | Window handle to replace and bind |
Notes
When ReplaceWnd contains a non-zero value pointing to a valid window handle, the positioning of the main element will follow the positioning of ReplaceWnd, simulating an embedding.