Template Members

Include Protected Members
Include Inherited Members

Represents a document template.

The Template type exposes the following members.

Methods

  Name Description
Public method OpenAsDocument Opens the specified template as a document and returns a Document object.
Public method Save Saves the specified document or template.

Top

Properties

  Name Description
Public property Application Returns a Application object that represents the Microsoft Word application.
Public property AutoTextEntries Returns a AutoTextEntries collection that represents all the AutoText entries in the specified template.
Public property BuildingBlockEntries Returns a BuildingBlockEntries collection that represents the collection of building block entries in a template. Read-only.
Public property BuildingBlockTypes Returns a BuildingBlockTypes collection that represents the collection of building block types that are contained in a template. Read-only.
Public property BuiltInDocumentProperties Returns a DocumentProperties collection that represents all the built-in document properties for the specified document.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property CustomDocumentProperties Returns a DocumentProperties collection that represents all the custom document properties for the specified document.
Public property FarEastLineBreakLanguage Returns or sets the East Asian language to use when breaking lines of text in the specified document or template.
Public property FarEastLineBreakLevel Returns or sets the line break control level for the specified document.
Public property FullName Specifies the name of a template, including the drive or Web path.
Public property JustificationMode Returns or sets the character spacing adjustment for the specified template.
Public property KerningByAlgorithm True if Microsoft Word kerns half-width Latin characters and punctuation marks in the specified document.
Public property LanguageID Returns or sets the language for the specified object.
Public property LanguageIDFarEast Returns or sets an East Asian language for the specified object.
Public property ListTemplates Returns a ListTemplates collection that represents all the list formats for the specified template.
Public property Name Returns or sets the name of the specified object.
Public property NoLineBreakAfter Returns or sets the kinsoku characters after which Microsoft Word will not break a line.
Public property NoLineBreakBefore Returns or sets the kinsoku characters before which Microsoft Word will not break a line.
Public property NoProofing True if the spelling and grammar checker ignores documents based on this template.
Public property Parent Returns an object that represents the parent object of the specified object.
Public property Path Returns the disk or Web path to the specified object.
Public property Saved True if the specified document or template hasn't changed since it was last saved. False if Microsoft Word displays a prompt to save changes when the document is closed.
Public property Type Returns the template type.
Public property VBProject Returns the VBProject object for the specified template.

Top

See Also

Reference

Template Interface

Microsoft.Office.Interop.Word Namespace