共用方式為


OpenXmlWriter.Create Method

Definition

Overloads

Create(OpenXmlPart)

Create an OpenXmlWriter from the OpenXmlPart.

Create(Stream)

Create an OpenXmlWriter on a given stream.

Create(OpenXmlPart, Encoding)

Create an OpenXmlWriter from the OpenXmlPart.

Create(Stream, Encoding)

Create an OpenXmlWriter on given stream

Create(OpenXmlPart)

Create an OpenXmlWriter from the OpenXmlPart.

public static DocumentFormat.OpenXml.OpenXmlWriter Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart);
static member Create : DocumentFormat.OpenXml.Packaging.OpenXmlPart -> DocumentFormat.OpenXml.OpenXmlWriter
Public Shared Function Create (openXmlPart As OpenXmlPart) As OpenXmlWriter

Parameters

openXmlPart
OpenXmlPart

The OpenXmlPart to be written.

Returns

The created OpenXmlWriter instance.

Applies to

Create(Stream)

Create an OpenXmlWriter on a given stream.

public static DocumentFormat.OpenXml.OpenXmlWriter Create (System.IO.Stream partStream);
static member Create : System.IO.Stream -> DocumentFormat.OpenXml.OpenXmlWriter
Public Shared Function Create (partStream As Stream) As OpenXmlWriter

Parameters

partStream
Stream

The target stream.

Returns

The created OpenXmlWriter instance.

Applies to

Create(OpenXmlPart, Encoding)

Create an OpenXmlWriter from the OpenXmlPart.

public static DocumentFormat.OpenXml.OpenXmlWriter Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart, System.Text.Encoding encoding);
static member Create : DocumentFormat.OpenXml.Packaging.OpenXmlPart * System.Text.Encoding -> DocumentFormat.OpenXml.OpenXmlWriter
Public Shared Function Create (openXmlPart As OpenXmlPart, encoding As Encoding) As OpenXmlWriter

Parameters

openXmlPart
OpenXmlPart

The OpenXmlPart to be written.

encoding
Encoding

The encoding for the XML stream.

Returns

The created OpenXmlWriter instance.

Applies to

Create(Stream, Encoding)

Create an OpenXmlWriter on given stream

public static DocumentFormat.OpenXml.OpenXmlWriter Create (System.IO.Stream partStream, System.Text.Encoding encoding);
static member Create : System.IO.Stream * System.Text.Encoding -> DocumentFormat.OpenXml.OpenXmlWriter
Public Shared Function Create (partStream As Stream, encoding As Encoding) As OpenXmlWriter

Parameters

partStream
Stream

The target stream.

encoding
Encoding

The encoding for the XML stream.

Returns

The created OpenXmlWriter instance.

Applies to