Click or drag to resize

ElementsRendererAddElementAsync(PageElement, CancellationToken) Method

Adds a page element without blocking, with a token that cancels the addition.

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

Parameters

pageElement  PageElement
The page element to add.
cancellationToken  CancellationToken
Cancels the render and the placement when they have not happened yet.

Return Value

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