Delegate Convert.WPFConverterOptions.DrawHeaderFooter
Delegates for drawing headers and footers.
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public delegate void DrawHeaderFooter(DrawingContext context, Rect bounds, Rect bodyBounds, Size pageSize, int pageNumber);
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.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) |
System.Windows.Size | pageSize | The size of the page in pixels at 96 dpi |
System.Int32 | 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 |
---|---|---|
System.Object | A_0 | |
System.IntPtr | A_1 |
Methods
BeginInvoke(DrawingContext, Rect, Rect, Size, Int32, AsyncCallback, Object)
Declaration
public IAsyncResult BeginInvoke(DrawingContext context, Rect bounds, Rect bodyBounds, Size pageSize, int pageNumber, AsyncCallback callback, object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | context | |
Rect | bounds | |
Rect | bodyBounds | |
System.Windows.Size | pageSize | |
System.Int32 | pageNumber | |
System.AsyncCallback | callback | |
System.Object | obj |
Returns
Type | Description |
---|---|
System.IAsyncResult |
EndInvoke(IAsyncResult)
Declaration
public void EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | result |
Invoke(DrawingContext, Rect, Rect, Size, Int32)
Declaration
public void Invoke(DrawingContext context, Rect bounds, Rect bodyBounds, Size pageSize, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | context | |
Rect | bounds | |
Rect | bodyBounds | |
System.Windows.Size | pageSize | |
System.Int32 | pageNumber |