Click or drag to resize

Template Class

Represents a document template repeated on each document page
Inheritance Hierarchy
SystemObject
  ExpertPdf.PdfCreatorElementsRenderer
    ExpertPdf.PdfCreatorTemplate

Namespace: ExpertPdf.PdfCreator
Assembly: epdfcreator (in epdfcreator.dll) Version: 21.1.0
Syntax
public class Template : ElementsRenderer

The Template type exposes the following members.

Properties
 NameDescription
Public propertyAnchoring Gets or sets the template anchoring inside the PDF page
Public propertyBounds Gets or sets the template bounds rectangle. Setting this property for a default template has no effect.
Public propertyBringToFront When true, this property makes the template to be rendered in front of the page main content. By default this property is true.
Public propertyClientRectangle Gets the drawable area of the renderer. The margins, document header and footer are excluded.
(Inherited from ElementsRenderer)
Public propertyDocking Gets or sets the template docking inside the PDF page
Public propertyDrawOnEvenPages Set this property to indicate whether the template is drawn or not on the odd pages. By default this property is true.
Public propertyDrawOnFirstPage Set this property to indicate whether the template is drawn or not on the first page. By default this property is true.
Public propertyDrawOnOddPages Set this property to indicate whether the template is drawn or not on the odd pages. By default this property is true.
Public propertyHeight Gets or sets template height for a custom template. Setting this property for a default document template has no effect.
Public propertyPageNumberingPageCountIncrement Gets or sets an increment for the total number of pages displayed using &P; variable in a TextElement added to the template.
Public propertyPageNumberingStartIndex Gets or sets the start index for page numbering using the &p; variable in a TextElement added to the template.
Public propertySendToBackground When true, this property makes the template to be rendered in the back of the page main content. By default this property is false.
Public propertyWidth Gets or sets template width for a custom template. Setting this property for a default document template has no effect.
Top
Methods
 NameDescription
Public methodAddElement Add a page element to the template
(Overrides ElementsRendererAddElement(PageElement))
Public methodMeasureString Measures the size of the specified string when rendered with the specified font.
(Inherited from ElementsRenderer)
Top
See Also