Click or drag to resize

PdfTemplate Class

Represents Pdf Template object.
Inheritance Hierarchy

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfTemplate : PdfShapeWidget

The PdfTemplate type exposes the following members.

Constructors
Name Description
Public method PdfTemplate(SizeF)
Initializes a new instance of theclass.
Public method PdfTemplate(Single, Single)
Initializes a new instance of theclass.
Public method PdfTemplate(Single, Single, Boolean)
Initializes a new instance of theclass.
Top
Properties
Name Description
Public property Graphics
Gets graphics context of the template.
Public property Height
Gets the height of the template.
Public property ReadOnly
Gets a value indicating whether the template is read-only.
Public property Size
Gets the size of the template.
Public property Width
Gets the width of the template.
Top
Methods
Name Description
Public method Draw(PdfCanvas)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfCanvas, PointF)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfPageBase, PointF)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfCanvas, Single, Single)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfPageBase, PointF, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF, Boolean)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, Single, Single)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, Single, Single, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Protected method DrawInternal (Overrides PdfGraphicsWidget DrawInternal(PdfCanvas) .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetBounds
Gets the bounds.
(Inherited from PdfShapeWidget .)
Protected method GetBoundsInternal (Overrides PdfShapeWidget GetBoundsInternal .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method Layout
Layouts the element.
(Inherited from PdfShapeWidget .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method Reset
Resets an instance.
Public method Reset(SizeF)
Resets the template and sets the specified size.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Events
Name Description
Public event BeginPageLayout
Event. Raises before the element should be printed on the page.
(Inherited from PdfLayoutWidget .)
Public event EndPageLayout
Event. Raises after the element was printed on the page.
(Inherited from PdfLayoutWidget .)
Top
See Also