Click or drag to resize
Pdf Library for .NET

PdfTemplateDocking Enumeration

Specifies how a template is docked to an edge of the PDF page.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public enum PdfTemplateDocking
Members
Member nameValueDescription
NotDocked0 The template is not docked. It is placed at the location given by its bounds.
Top1 The template is docked to the top edge of the page.
Bottom2 The template is docked to the bottom edge of the page.
Left3 The template is docked to the left edge of the page.
Right4 The template is docked to the right edge of the page.
Fill5 The template fills the whole page.
Example
PdfTemplate banner = document.Templates.Add(595, 50);
banner.Docking = PdfTemplateDocking.Top;
See Also