UpdateDocumentProperties
PresentationInfo.UpdateDocumentProperties 方法
更新绑定演示文稿的属性。
public void UpdateDocumentProperties(IDocumentProperties documentProperties)
示例
此示例显示如何调用 UpdateDocumentProperties
方法以更新通过调用 ReadDocumentProperties
方法返回的文档属性。
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");