Click or drag to resize

OpenXmlPartReader Class

Represents the Open XML part reader class.
Inheritance Hierarchy
SystemObject
  DocumentFormat.OpenXmlOpenXmlReader
    DocumentFormat.OpenXmlOpenXmlPartReader
      DocumentFormat.OpenXmlTypedOpenXmlPartReader

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public class OpenXmlPartReader : OpenXmlReader

The OpenXmlPartReader type exposes the following members.

Constructors
 NameDescription
Public methodOpenXmlPartReader(OpenXmlPart) Initializes a new instance of the OpenXmlPartReader class using the supplied OpenXmlPart class.
Public methodOpenXmlPartReader(Stream) Initializes a new instance of the OpenXmlPartReader class using the supplied stream.
Obsolete
Public methodOpenXmlPartReader(OpenXmlPart, OpenXmlPartReaderOptions) Initializes a new instance of the OpenXmlPartReader class.
Public methodOpenXmlPartReader(OpenXmlPart, Boolean) Initializes a new instance of the OpenXmlPartReader class using the supplied OpenXmlPart and Boolean values.
Public methodOpenXmlPartReader(Stream, Boolean) Initializes a new instance of the OpenXmlPartReader class using the supplied stream and Boolean values.
Obsolete
Public methodOpenXmlPartReader(OpenXmlPart, Boolean, Boolean) Initializes a new instance of the OpenXmlPartReader class using the supplied OpenXmlPart and Boolean values.
Public methodOpenXmlPartReader(Stream, IFeatureCollection, OpenXmlPartReaderOptions) Initializes a new instance of the OpenXmlPartReader class.
Public methodOpenXmlPartReader(Stream, Boolean, Boolean) Initializes a new instance of the OpenXmlPartReader class using the supplied stream and Boolean values.
Obsolete
Top
Properties
 NameDescription
Public propertyAttributes Gets the list of attributes of the current element.
(Overrides OpenXmlReaderAttributes)
Public propertyDepth Gets the depth of the current node in the XML document. The depth of the root element is 0.
(Overrides OpenXmlReaderDepth)
Public propertyElementType Gets the type of the corresponding strongly typed class of the current element.
(Overrides OpenXmlReaderElementType)
Public propertyEncoding Gets the encoding of the XML file.
(Overrides OpenXmlReaderEncoding)
Public propertyEOF Gets a value indicating whether the reader is positioned at the end of the stream.
(Overrides OpenXmlReaderEOF)
Public propertyHasAttributes Gets a value indicating whether the current node has any attributes.
(Inherited from OpenXmlReader)
Public propertyIsEndElement Gets a value indicating whether the current node is an element end.
(Overrides OpenXmlReaderIsEndElement)
Public propertyIsMiscNode Gets a value indicating whether the current node is a miscellaneous XML node (non element).
(Overrides OpenXmlReaderIsMiscNode)
Public propertyIsStartElement Gets a value indicating whether the current node is an element start.
(Overrides OpenXmlReaderIsStartElement)
Public propertyLocalName Gets the local name of the current node.
(Overrides OpenXmlReaderLocalName)
Public propertyNamespaceDeclarations Gets the namespace declarations of the current element.
(Overrides OpenXmlReaderNamespaceDeclarations)
Public propertyNamespaceUri Gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reader is positioned.
(Overrides OpenXmlReaderNamespaceUri)
Public propertyPrefix Gets the namespace prefix associated with the current node.
(Overrides OpenXmlReaderPrefix)
Public propertyReadMiscNodes Gets a value indicating whether the OpenXmlReader will read or skip all miscellaneous nodes.
(Inherited from OpenXmlReader)
Public propertyStandaloneXml Gets the standalone property of the XML file. Returns false if there is no "standalone" in the XML declaration stream.
(Overrides OpenXmlReaderStandaloneXml)
Top
Methods
 NameDescription
Public methodClose Closes the reader.
(Overrides OpenXmlReaderClose)
Public methodDispose Closes the reader, and releases all resources.
(Inherited from OpenXmlReader)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLineInfo Gets an instance of IXmlLineInfo if available for the current reader.
(Overrides OpenXmlReaderGetLineInfo)
Public methodGetText Gets the text of the element if the element is an OpenXmlLeafTextElement. Returns String.Empty for other elements.
(Overrides OpenXmlReaderGetText)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLoadCurrentElement Loads the element at current cursor.
(Overrides OpenXmlReaderLoadCurrentElement)
Public methodRead Moves to read the next element.
(Overrides OpenXmlReaderRead)
Public methodReadFirstChild Moves to read the first child element.
(Overrides OpenXmlReaderReadFirstChild)
Public methodReadNextSibling Moves to read the next sibling element.
(Overrides OpenXmlReaderReadNextSibling)
Public methodSkip Skips the child elements of the current node.
(Overrides OpenXmlReaderSkip)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also