OpenXmlWriter.Create-Methode (OpenXmlPart, Encoding)
Create an OpenXmlWriter from the OpenXmlPart.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Shared Function Create ( _
openXmlPart As OpenXmlPart, _
encoding As Encoding _
) As OpenXmlWriter
'Usage
Dim openXmlPart As OpenXmlPart
Dim encoding As Encoding
Dim returnValue As OpenXmlWriter
returnValue = OpenXmlWriter.Create(openXmlPart, _
encoding)
public static OpenXmlWriter Create(
OpenXmlPart openXmlPart,
Encoding encoding
)
Parameter
- openXmlPart
Typ: DocumentFormat.OpenXml.Packaging.OpenXmlPart
The OpenXmlPart to be writern.
- encoding
Typ: System.Text.Encoding
The encoding for the XML stream.
Rückgabewert
Typ: DocumentFormat.OpenXml.OpenXmlWriter
The created OpenXmlWriter instance.