ElementsRendererAddElementAsync(PageElement, CancellationToken) Method |
Adds a page element without blocking, with a token that cancels the addition.
Namespace: ExpertPdf.Anywhere.PdfDocumentAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic Task<AddElementResult> AddElementAsync(
PageElement pageElement,
CancellationToken cancellationToken
)
Public Function AddElementAsync (
pageElement As PageElement,
cancellationToken As CancellationToken
) As Task(Of AddElementResult)
Parameters
- pageElement PageElement
- The page element to add.
- cancellationToken CancellationToken
- Cancels the render and the placement when they have not happened yet.
Return Value
TaskAddElementResultA task that completes with the result of adding the element once it is placed.
See Also