UpdateDocumentProperties()

IPresentationInfo::UpdateDocumentProperties(System::SharedPtr<IDocumentProperties>) method

Updates properties of binded presentation.

virtual void Aspose::Slides::IPresentationInfo::UpdateDocumentProperties(System::SharedPtr<IDocumentProperties> documentProperties)=0

Arguments

ParameterTypeDescription
documentPropertiesSystem::SharedPtr<IDocumentProperties>Document properties IDocumentProperties

Remarks

This sample shows how to call the IPresentationInfo::UpdateDocumentProperties method to update the document properties returned by call of the IPresentationInfo::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