UpdateDocumentProperties

PresentationInfo.UpdateDocumentProperties method

更新绑定表示的属性。

public void UpdateDocumentProperties(IDocumentProperties documentProperties)

例子

此示例显示如何调用IDocumentProperties)方法为 更新调用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");

也可以看看