Share via


OpenXmlDomReader.Depth Property

Gets the depth of the current node in the XML document. The depth of the root element is 0.

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

Syntax

'Declaration
Public Overrides ReadOnly Property Depth As Integer
    Get
'Usage
Dim instance As OpenXmlDomReader
Dim value As Integer

value = instance.Depth
public override int Depth { get; }

Property Value

Type: System.Int32
Returns Int32.

See Also

Reference

OpenXmlDomReader Class

OpenXmlDomReader Members

DocumentFormat.OpenXml Namespace