Share via


OpenXmlDomReader.LoadCurrentElement Method

Load the element at current cursor.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Overrides Function LoadCurrentElement As OpenXmlElement
'Usage
Dim instance As OpenXmlDomReader
Dim returnValue As OpenXmlElement

returnValue = instance.LoadCurrentElement()
public override OpenXmlElement LoadCurrentElement()

Return Value

Type: DocumentFormat.OpenXml.OpenXmlElement
The OpenXmlElement.

Exceptions

Exception Condition
InvalidOperationException

When the current is element end.

Remarks

The new current element is the end of the element after LoadCurrentElement().

See Also

Reference

OpenXmlDomReader Class

OpenXmlDomReader Members

DocumentFormat.OpenXml Namespace