THTMLDoc.CreateComponent Method

Inserts an HTML. Used to insert regular HTML elements or WebComponents with custom elements.

Pascal

procedure CreateComponent(const Id: WideString; const Html: WideString; ReplaceWnd: Int64); safecall;

Parameters

Parameters

Description

const Id: WideString

ID to assign to the main element of the HTML to be inserted

const Html: WideString

HTML snippet

ReplaceWnd: Int64

Wnd to be replaced and tied to

Remarks

When ReplaceWnd is <> 0 and points to a valid window handle, the positioning of the main element will follow the Wnd positioning, simulating an embedding.

Group

THTMLDoc Methods