OpenXmlPartRootElement.Save Method

Saves the data in the DOM tree back to the part. It could be called multiple times as well. Each time it is called, the stream will be flushed.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Sub Save
'Usage
Dim instance As OpenXmlPartRootElement

instance.Save()
public void Save()

Exceptions

Exception Condition
InvalidOperationException

Thrown when the tree is not associated with a part.

Remarks

User must call this method explicitly to save the changes in the DOM tree.

See Also

Reference

OpenXmlPartRootElement Class

OpenXmlPartRootElement Members

Save Overload

DocumentFormat.OpenXml Namespace