Table of Contents

Class TemplateCollection

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

This class represents the collection of templates in PDF document. A template element can be repeated in all PDF document pages. of the document.

[ClassInterface(ClassInterfaceType.AutoDual)]
public class TemplateCollection
Inheritance
TemplateCollection
Inherited Members

Properties

Count

The number of templates in collection.

public int Count { get; }

Property Value

int

this[int]

Gets the template at the specified index zero base index.

public Template this[int templateIndex] { get; }

Parameters

templateIndex int

Property Value

Template

The template at the specified zero based index.

Methods

AddNewTemplate(RectangleF)

Add a new template with the specified bounds to the document templates collection.

public Template AddNewTemplate(RectangleF bounds)

Parameters

bounds RectangleF

The template element bounds in points.

Returns

Template

The newly added template.

AddNewTemplate(float, float)

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 Template AddNewTemplate(float width, float height)

Parameters

width float

The width in points of the template.

height float

The height in points of the template.

Returns

Template

The newly added template.

GetEnumerator()

Gets the collection enumerator.

public IEnumerator GetEnumerator()

Returns

IEnumerator

The collection enumerator.