UpdateDocumentProperties
PresentationInfo.UpdateDocumentProperties Methode
Aktualisiert Eigenschaften der gebundenen Präsentation.
public void UpdateDocumentProperties(IDocumentProperties documentProperties)
Beispiele
Dieses Beispiel zeigt, wie man die Methode UpdateDocumentProperties
aufruft, um die Dokumenteigenschaften zu aktualisieren, die durch den Aufruf der Methode ReadDocumentProperties
zurückgegeben werden.
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("pres.pptx");
IDocumentProperties props = info.ReadDocumentProperties();
props.Subject = "Neues Thema";
props.LastSavedTime = DateTime.UtcNow;
info.UpdateDocumentProperties(props);
info.WriteBindedPresentation("new_pres.pptx");
Siehe Auch
- Schnittstelle IDocumentProperties
- Klasse PresentationInfo
- Namespace Aspose.Slides
- Assembly Aspose.Slides