Aspose::Words::Document::get_OriginalLoadFormat method

Document::get_OriginalLoadFormat method

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

Aspose::Words::LoadFormat Aspose::Words::Document::get_OriginalLoadFormat() const

Remarks

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

Examples

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

auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Document.docx"));

ASSERT_EQ(doc->get_OriginalFileName(), get_MyDir() + u"Document.docx");
ASSERT_EQ(doc->get_OriginalLoadFormat(), LoadFormat::Docx);

See Also