Delegate Convert.WPFConverterOptions.DrawHeaderFooter
Delegates for drawing headers and footers.
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public delegate void Convert.WPFConverterOptions.DrawHeaderFooter(DrawingContext context, Rect bounds, Rect bodyBounds, Size pageSize, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | context | This is the drawing context that should be used |
Rect | bounds | The bounds of the header with (x1, y1) upper left corner to (x2, y2) |
Rect | bodyBounds | The bounds of the body area with (x1, y1) upper left corner to (x2, y2) |
Size | pageSize | The size of the page in pixels at 96 dpi |
int | pageNumber | The page number is 0 based |
Remarks
All resources that you use in the header and footer delegates must persist until the document is serialized.
Constructors
DrawHeaderFooter(object, IntPtr)
Declaration
public DrawHeaderFooter(object A_0, IntPtr A_1)
Parameters
Type | Name | Description |
---|---|---|
object | A_0 | |
IntPtr | A_1 |
Methods
BeginInvoke(DrawingContext, Rect, Rect, Size, int, AsyncCallback, object)
Declaration
public IAsyncResult BeginInvoke(DrawingContext context, Rect bounds, Rect bodyBounds, Size pageSize, int pageNumber, AsyncCallback callback, object obj)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | context | |
Rect | bounds | |
Rect | bodyBounds | |
Size | pageSize | |
int | pageNumber | |
AsyncCallback | callback | |
object | obj |
Returns
Type | Description |
---|---|
IAsyncResult |
EndInvoke(IAsyncResult)
Declaration
public void EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | result |
Invoke(DrawingContext, Rect, Rect, Size, int)
Declaration
public void Invoke(DrawingContext context, Rect bounds, Rect bodyBounds, Size pageSize, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | context | |
Rect | bounds | |
Rect | bodyBounds | |
Size | pageSize | |
int | pageNumber |