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.PdfDocumentAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic Task<AddElementResult> AddElementAsync(
PageElement pageElement
)
Public Function AddElementAsync (
pageElement As PageElement
) As Task(Of AddElementResult)
Parameters
- pageElement PageElement
- The page element to add.
Return Value
TaskAddElementResultA task that completes with the result of adding the element once it is placed.
RemarksSeveral 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