Share via


OpenXmlPartWriter Constructors

Definition

Overloads

OpenXmlPartWriter(OpenXmlPart)

Initializes a new instance of the OpenXmlPartWriter.

OpenXmlPartWriter(Stream)

Initializes a new instance of the OpenXmlPartWriter.

OpenXmlPartWriter(OpenXmlPart, Encoding)

Initializes a new instance of the OpenXmlPartWriter.

OpenXmlPartWriter(Stream, Encoding)

Initializes a new instance of the OpenXmlPartWriter.

OpenXmlPartWriter(OpenXmlPart)

Initializes a new instance of the OpenXmlPartWriter.

public OpenXmlPartWriter (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart);
new DocumentFormat.OpenXml.OpenXmlPartWriter : DocumentFormat.OpenXml.Packaging.OpenXmlPart -> DocumentFormat.OpenXml.OpenXmlPartWriter
Public Sub New (openXmlPart As OpenXmlPart)

Parameters

openXmlPart
OpenXmlPart

The OpenXmlPart to be written to.

Applies to

OpenXmlPartWriter(Stream)

Initializes a new instance of the OpenXmlPartWriter.

public OpenXmlPartWriter (System.IO.Stream partStream);
new DocumentFormat.OpenXml.OpenXmlPartWriter : System.IO.Stream -> DocumentFormat.OpenXml.OpenXmlPartWriter
Public Sub New (partStream As Stream)

Parameters

partStream
Stream

The given part stream.

Applies to

OpenXmlPartWriter(OpenXmlPart, Encoding)

Initializes a new instance of the OpenXmlPartWriter.

public OpenXmlPartWriter (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart, System.Text.Encoding encoding);
new DocumentFormat.OpenXml.OpenXmlPartWriter : DocumentFormat.OpenXml.Packaging.OpenXmlPart * System.Text.Encoding -> DocumentFormat.OpenXml.OpenXmlPartWriter
Public Sub New (openXmlPart As OpenXmlPart, encoding As Encoding)

Parameters

openXmlPart
OpenXmlPart

The OpenXmlPart to be written to.

encoding
Encoding

The encoding for the XML stream.

Applies to

OpenXmlPartWriter(Stream, Encoding)

Initializes a new instance of the OpenXmlPartWriter.

public OpenXmlPartWriter (System.IO.Stream partStream, System.Text.Encoding encoding);
new DocumentFormat.OpenXml.OpenXmlPartWriter : System.IO.Stream * System.Text.Encoding -> DocumentFormat.OpenXml.OpenXmlPartWriter
Public Sub New (partStream As Stream, encoding As Encoding)

Parameters

partStream
Stream

The given part stream.

encoding
Encoding

The encoding for the XML stream.

Applies to