Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode method

TxtSaveOptions::get_OfficeMathExportMode method

Specifies how OfficeMath will be written to the output file. Default value is Text.

Aspose::Words::Saving::TxtOfficeMathExportMode Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode() const

Examples

Shows how to export OfficeMath object as Latex in TXT.

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

auto saveOptions = System::MakeObject<Aspose::Words::Saving::TxtSaveOptions>();
saveOptions->set_OfficeMathExportMode(Aspose::Words::Saving::TxtOfficeMathExportMode::Latex);

doc->Save(get_ArtifactsDir() + u"TxtSaveOptions.ExportOfficeMathAsLatexToText.txt", saveOptions);

See Also