Click or drag to resize

PdfTemplateManager Class

PdfTemplateManager is a PdfResourceManager instance used for managing PdfTemplateResource objects which are used to hold DrawingTemplate objects. You will never need to make one of these objects yourself. There is an instance of the PdfTemplateManager class in Templates property of the GlobalResources class.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.Generating.ResourceHandlingPdfResourceManagerPdfTemplateResource
    Atalasoft.PdfDoc.Generating.ResourceHandling.TemplatesPdfTemplateManager

Namespace:  Atalasoft.PdfDoc.Generating.ResourceHandling.Templates
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class PdfTemplateManager : PdfResourceManager<PdfTemplateResource>

The PdfTemplateManager type exposes the following members.

Constructors
  NameDescription
Public methodPdfTemplateManager
Initializes a new empty instance of the PdfTemplateManager class.
Top
Properties
Methods
  NameDescription
Public methodCode exampleAdd(T)
Adds the specified resource with an auto-generated name.
(Inherited from PdfResourceManagerT.)
Public methodAdd(DrawingTemplate)
Adds the specified template.
Public methodCode exampleAdd(String, T)
Adds a resource to the resource manager. Throws ArgumentException if a resource with the same name is already present.
(Inherited from PdfResourceManagerT.)
Public methodAdd(String, DrawingTemplate)
Adds the specified template, using the provided name.
Public methodContains
Determines whether or not the resource is present.
(Inherited from PdfResourceManagerT.)
Public methodDispose
Disposes all resources contained in this resource manager
(Inherited from PdfResourceManagerT.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from PdfResourceManagerT.)
Protected methodDisposeManagedResources
Disposes the managed resources.
(Inherited from PdfResourceManagerT.)
Protected methodDisposeUnmanagedResources
Disposes the unmanaged resources.
(Inherited from PdfResourceManagerT.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from PdfResourceManagerT.)
Public methodCode exampleGet
Gets a resource with the given name. Throws an exception if there is no resource present with that name.
(Inherited from PdfResourceManagerT.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge
Merges the set of resources, other, into this ResourceManager using the selector to resolve name conflicts.
(Inherited from PdfResourceManagerT.)
Public methodNextName
Returns the next available auto-generated name for this resource.
string name = someResourceManager.NextName();
someResourceManager.Add(name, someResource);
(Inherited from PdfResourceManagerT.)
Public methodCode exampleRemove
Removes the resource of the specified name. Throws an ArgumentException if name is not present.
(Inherited from PdfResourceManagerT.)
Protected methodResourcesMatch
Compares two resources for equality. Default implementation returns false. Subclasses should override this method
(Overrides PdfResourceManagerTResourcesMatch(T, T).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleTryGet
Tries to get the specified resource.
(Inherited from PdfResourceManagerT.)
Top
See Also