PeachBrackets
PeachBrackets.HtmlDocument
HtmlDocument.PaintPageAsync(int, Canvas) Method
Paints one page onto canvas.
public System.Threading.Tasks.Task PaintPageAsync(int pageIndex, PeachDrawing.Core.Canvas canvas);
Parameters
pageIndex System.Int32
the zero-based index of the page, from 0 to Pages.Count - 1
canvas Canvas
the canvas to draw on: the size of the page’s sheet in layout units, origin at its top-left corner
Returns
System.Threading.Tasks.Task
a task that completes when the page is drawn
Exceptions
System.ArgumentOutOfRangeException
pageIndex is not a page of the document
System.InvalidOperationException
the document has not been laid out