Click or drag to resize

OpenXmlPartRootElementSave Method

Saves the data in the DOM tree back to the part. This method can be called multiple times and each time it is called, the stream will be flushed.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.11.3+Branch.master.Sha.3fcdea311b5a001803ff150de35c25fd4cd62f93.3fcdea311b5a001803ff150de35c25fd4cd62f93
Syntax
public void Save()
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when the tree is not associated with a part.
Remarks
Call this method explicitly to save the changes in the DOM tree.
See Also