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.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
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