Click or drag to resize

ElementsRendererAddElementAsync(PageElement) Method

Adds a page element without blocking: the HTML and HTML-to-image elements start their render at once, and the element is placed after every element added before it to the same document, in the order they were added.

Namespace: ExpertPdf.Anywhere.PdfDocument
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public Task<AddElementResult> AddElementAsync(
	PageElement pageElement
)

Parameters

pageElement  PageElement
The page element to add.

Return Value

TaskAddElementResult
A task that completes with the result of adding the element once it is placed.
Remarks

Several HTML elements added this way render at the same time - the conversions run in parallel - and are placed in order. Saving the document, a synchronous AddElement(PageElement), and every member of the document's pages wait for the pending additions. An element positioned from the result of another one must await that one first.

A failure faults the element's own task and does not stop the next addition.

See Also