OpenXmlPartWriter Constructor (OpenXmlPart, Encoding)
Initializes a new instance of the OpenXmlPartWriter.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Sub New ( _
openXmlPart As OpenXmlPart, _
encoding As Encoding _
)
'Usage
Dim openXmlPart As OpenXmlPart
Dim encoding As Encoding
Dim instance As New OpenXmlPartWriter(openXmlPart, _
encoding)
public OpenXmlPartWriter(
OpenXmlPart openXmlPart,
Encoding encoding
)
Parameters
- openXmlPart
Type: DocumentFormat.OpenXml.Packaging.OpenXmlPart
The OpenXmlPart to be written to.
- encoding
Type: System.Text.Encoding
The encoding for the XML stream.