OriginalLoadFormat

Document.OriginalLoadFormat property

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

public LoadFormat OriginalLoadFormat { get; }

Remarks

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

Examples

Shows how to retrieve details of a document’s load operation.

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

Assert.That(doc.OriginalFileName, Is.EqualTo(MyDir + "Document.docx"));
Assert.That(doc.OriginalLoadFormat, Is.EqualTo(LoadFormat.Docx));

See Also