DocumentAttachedTemplate Property
Gets or sets the full path of the template attached to the document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public string AttachedTemplate { get; set; }

Property Value

Type: String
Exceptions
ExceptionCondition
ArgumentNullExceptionThrows if you attempt to set to a null value.
Remarks

Empty string means the document is attached to the Normal template.

Examples
Opens a document, makes sure it is no longer attached to a template and saves the document.
[C#]

Document doc = new Document(MyDir + "Document.doc");

doc.AttachedTemplate = "";
doc.Save(ArtifactsDir + "Document.DetachTemplate.doc");
See Also