AttachedTemplate Class
Attached Document Template.When the object is serialized out as xml, its qualified name is w:attachedTemplate.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.RelationshipType
DocumentFormat.OpenXml.Wordprocessing.AttachedTemplate
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class AttachedTemplate _
Inherits RelationshipType
'Usage
Dim instance As AttachedTemplate
public class AttachedTemplate : RelationshipType
Remarks
[ISO/IEC 29500-1 1st Edition]
17.15.1.6 attachedTemplate (Attached Document Template)
This element specifies the location of a document template which shall be attached to the current WordprocessingML document if it is accessible and of a format supported by an application. Specifically, this element's val attribute shall contain the file path of the associated document template.
If this element is omitted, then the document shall not have an attached document template, and applications should use their default template in its place.
[Example: Consider a WordprocessingML document which is attached to a WordprocessingML template located on the local C drive within a file whose name is c:\template.dotx. This association is specified using the following WordprocessingML:
<w:attachedTemplate r:id="rId1" />
The attachedTemplate element contains the ID of the relationship which references the associated template. end example]
Parent Elements |
---|
settings (§17.15.1.78) |
Attributes |
Description |
---|---|
id (Relationship to Part) Namespace: .../officeDocument/2006/relationships |
Specifies the relationship ID to a specified part. The specified relationship shall match the relationship type required by the parent element:
[Example: Consider an XML element which has the following id attribute: <… r:id="rId10" /> The markup specifies the associated relationship part with relationship ID rId1 contains the corresponding relationship information for the parent XML element. end example] The possible values for this attribute are defined by the ST_RelationshipId simple type (§22.8.2.1). |
[Note: The W3C XML Schema definition of this element’s content model (CT_Rel) is located in §A.1. end note]
© ISO/IEC29500: 2008.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.