UpdateDocumentProperties()
PresentationInfo::UpdateDocumentProperties(System::SharedPtr<IDocumentProperties>) method
Updates properties of binded presentation.
void Aspose::Slides::PresentationInfo::UpdateDocumentProperties(System::SharedPtr<IDocumentProperties> documentProperties) override
Remarks
This sample shows how to call the PresentationInfo::UpdateDocumentProperties method to update the document properties returned by call of the PresentationInfo::ReadDocumentProperties method.
auto info = PresentationFactory::get_Instance()->GetPresentationInfo(u"pres.pptx");
auto props = info->ReadDocumentProperties();
props->set_Subject(u"New subject");
props->set_LastSavedTime(System::DateTime::get_UtcNow());
info->UpdateDocumentProperties(props);
info->WriteBindedPresentation(u"new_pres.pptx");
See Also
- Typedef SharedPtr
- Class IDocumentProperties
- Class PresentationInfo
- Namespace Aspose::Slides
- Library Aspose.Slides