Template Members

The Template type exposes the following members.
Constructors

  NameDescription
Public methodTemplate(PackageTemplateLocation, String, String)
Construct a Template object for the main template in a package.
Public methodTemplate(String, TemplateLocation, String, String)
Construct a Template object.
Back to Top
Methods

  NameDescription
Public methodCreateLocator
Returns a locator string to recreate the template object at a later time. Use the Locate method to recreate the object.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodGetDocExtension 
Returns the assembled document extension associated with the NativeDocumentType property.
Public methodStatic memberGetDocExtension(DocumentType, Template)
Returns the assembled document extension for a specific document type.
Public methodGetFullPath
Returns the full path (based on the directory specified by Location.GetTemplateDirectory) of the template.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetManifest
Gets the template manifest for this template. Can optionally parse an entire template manifest spanning tree. See ManifestParseFlags for details.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodStatic memberLocate
Returns a Template created from a locator string generated by CreateLocator.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodUpdateFileName
Request that the Template.Location update the file name as needed.
Back to Top
Properties

  NameDescription
Public propertyFileName
The file name (including extension) of the template. No path information is included.
Public propertyGeneratesDocument
Based on TemplateType, tells the host app whether this type of template generates a document or not (although regardless, ALL template types need to be assembled in order to participate in assembly queues)
Public propertyHasInterview
Parses command-line switches to inform the host app whether or not an interview should be displayed for this template.
Public propertyKey
A key identifying the template. When using a template management scheme where the template file itself is temporary (such as with a DMS) set this key to help HotDocs Server to keep track of which server files are for which template. If not empty, this key is also used internally by HotDocs Server for caching purposes.
Public propertyLocation
Defines the location of the template.
Public propertyNativeDocumentType
Based on the template file extension, get the document type native to the template type.
Public propertySwitches
Command line switches that may be applicable when assembling the template, as provided to the ASSEMBLE instruction.
Public propertyTemplateType
If the host app wants to know, this property does what's necessary to tell you the type of template you're dealing with.
Public propertyTitle
The template title, which comes from the template's manifest file by default.
Back to Top
See Also