Microsoft Word Suite
175
Class: template
Plural
templates
Elements
auto text entry
document property
custom document property
list template
Represents a document template. The templates list includes all the available template objects.
Use template index, where index is the template name or the index number, to return a single
template object. The index number represents the position of the template in the templates list. The
following example opens the first template in the templates list.
open as document template 1
The make command isn't available for the templates list. Instead, you can add a template to the
templates list by doing any of the following:
·
Using the open command with a document object to open a document based on a template or a
template
·
Using the attached template property with a document object to attach a template to a document
Remarks
To return a template object that refers to the Normal template, use the normal template property of
the application class. To return the template attached to the specified document, use the attached
template property of a document object.
To return or set the location of user or workgroup templates (that is, the folder where you want to
store these templates), use the get default file path or set default file path command. The following
example displays the user template folder from the File Locations pane of the Preferences dialog
box (Word menu).
display dialog (get default file path file path type user templates path)
Properties
east asian line break
True if Word applies East Asian line-breaking rules to the specified paragraphs. Read/write.
full name
Returns the name of the specified document or template, including its path on disk. Read-only.
Using this property is equivalent to using the path, path separator, and name properties, in
sequence.