DocumentOriginalLoadFormat Property

Gets the format of the original document that was loaded into this object.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.8.0

Syntax

public LoadFormat OriginalLoadFormat { get; }

Property Value

Type: LoadFormat

Remarks

If you created a new blank document, returns the Doc value.

Examples

Shows how to retrieve the details of the path, filename and LoadFormat of a document from when the document was first loaded into memory.
Document doc = new Document(MyDir + "Document.docx");

// This property will return the full path and file name where the document was loaded from
Assert.AreEqual(MyDir + "Document.docx", doc.OriginalFileName);

// This is the original LoadFormat of the document
Assert.AreEqual(Aspose.Words.LoadFormat.Docx, doc.OriginalLoadFormat);

See Also