Click or drag to resize

TemplateCollection Class

The PDF document templates. A document template is repeated on each page of the document.
Inheritance Hierarchy
SystemObject
  ExpertPdf.HtmlToPdf.PdfDocumentTemplateCollection

Namespace:  ExpertPdf.HtmlToPdf.PdfDocument
Assembly:  ephtmltopdf (in ephtmltopdf.dll) Version: 17.0.0
Syntax
public class TemplateCollection

The TemplateCollection type exposes the following members.

Properties
  NameDescription
Public propertyCount
The number of templates in collection.
Public propertyFooterTemplate
Represents the default PDF document footer template. This footer is automatically considered when calculating the available space for rendering in a PDF page. This template is automatically docked to the bottom of the PDF page.
Public propertyHeaderTemplate
Represents the default PDF document header template. This header is automatically considered when calculating the available space for drawing in a PDF page. This template is automatically docked to the top of the PDF page.
Public propertyItem
Gets the template at the specified index zero base index.
Top
Methods
  NameDescription
Public methodAddNewTemplate(RectangleF)
Add a new template with the specified bounds to the document templates collection.
Public methodAddNewTemplate(Single, Single)
Add a new template with the specified width and height to the document templates collection. The template location is top left corner of the page.
Public methodGetEnumerator
Gets the collection enumerator.
Top
See Also