UpdateDocumentProperties

IPresentationInfo.UpdateDocumentProperties method

Updates properties of binded presentation.

public void UpdateDocumentProperties(IDocumentProperties documentProperties)
Parameter Type Description
documentProperties IDocumentProperties Document properties IDocumentProperties

Examples

This sample shows how to call the UpdateDocumentProperties method to update the document properties returned by call of the ReadDocumentProperties method.

IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("pres.pptx");
IDocumentProperties props = info.ReadDocumentProperties();
props.Subject = "New subject";
props.LastSavedTime = DateTime.UtcNow;
info.UpdateDocumentProperties(props);
info.WriteBindedPresentation("new_pres.pptx");

See Also