OpenXmlReader.Create Method

Definition

Overloads

Create(Stream, Boolean, Boolean)
Obsolete.

Creates an OpenXmlReader from the specified part stream and Boolean values.

Create(OpenXmlPart, Boolean, Boolean)

Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values.

Create(Stream, Boolean)
Obsolete.

Creates an OpenXmlReader from the specified part stream and Boolean values.

Create(OpenXmlPart, Boolean)

Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values.

Create(Stream)
Obsolete.

Creates an OpenXmlReader from the specified part stream.

Create(OpenXmlPart)

Creates an OpenXmlReader from the specified OpenXmlPart.

Create(OpenXmlElement)

Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree).

Create(OpenXmlElement, Boolean)

Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree).

Create(Stream, Boolean, Boolean)

Caution

Use TypedOpenXmlPartReader instead.

Creates an OpenXmlReader from the specified part stream and Boolean values.

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes, bool ignoreWhitespace);
C#
[System.Obsolete("Use TypedOpenXmlPartReader instead.", true)]
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes, bool ignoreWhitespace);

Parameters

partStream
Stream

The part stream.

readMiscNodes
Boolean

Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.

ignoreWhitespace
Boolean

Specify true to indicate to the reader to ignore insignificant white space. The default value is true.

Returns

Attributes

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions (Obsolete)
DocumentFormat.OpenXml 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0 (2.20.0)

Create(OpenXmlPart, Boolean, Boolean)

Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values.

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart, bool readMiscNodes, bool ignoreWhitespace);

Parameters

openXmlPart
OpenXmlPart

The OpenXmlPart to read.

readMiscNodes
Boolean

Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.

ignoreWhitespace
Boolean

Specify true to indicate to the reader to ignore insignificant white space. The default value is true.

Returns

The newly created OpenXmlReader.

Applies to

DocumentFormat.OpenXml 3.0.1 and other versions
Product Versions
DocumentFormat.OpenXml 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

Create(Stream, Boolean)

Caution

Use TypedOpenXmlPartReader instead.

Creates an OpenXmlReader from the specified part stream and Boolean values.

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes);
C#
[System.Obsolete("Use TypedOpenXmlPartReader instead.", true)]
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes);

Parameters

partStream
Stream

The part stream.

readMiscNodes
Boolean

Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.

Returns

Attributes

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions (Obsolete)
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0 (2.20.0)

Create(OpenXmlPart, Boolean)

Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values.

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart, bool readMiscNodes);

Parameters

openXmlPart
OpenXmlPart

The OpenXmlPart to read.

readMiscNodes
Boolean

Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.

Returns

The newly created OpenXmlReader.

Applies to

DocumentFormat.OpenXml 3.0.1 and other versions
Product Versions
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

Create(Stream)

Caution

Use TypedOpenXmlPartReader instead.

Creates an OpenXmlReader from the specified part stream.

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream);
C#
[System.Obsolete("Use TypedOpenXmlPartReader instead.", true)]
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream);

Parameters

partStream
Stream

The part stream.

Returns

Attributes

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions (Obsolete)
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0 (2.20.0)

Create(OpenXmlPart)

Creates an OpenXmlReader from the specified OpenXmlPart.

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart);

Parameters

openXmlPart
OpenXmlPart

The OpenXmlPart to read.

Returns

The newly created OpenXmlReader.

Applies to

DocumentFormat.OpenXml 3.0.1 and other versions
Product Versions
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

Create(OpenXmlElement)

Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree).

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.OpenXmlElement openXmlElement);

Parameters

openXmlElement
OpenXmlElement

The OpenXmlElement to read.

Returns

The newly created OpenXmlReader.

Applies to

DocumentFormat.OpenXml 3.0.1 and other versions
Product Versions
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

Create(OpenXmlElement, Boolean)

Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree).

C#
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.OpenXmlElement openXmlElement, bool readMiscNodes);

Parameters

openXmlElement
OpenXmlElement

The OpenXmlElement to read.

readMiscNodes
Boolean

Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.

Returns

The newly created OpenXmlReader.

Applies to

DocumentFormat.OpenXml 3.0.1 and other versions
Product Versions
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1