Share via


OpenXmlPartReader.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 OpenXmlPartReader
Dim value As Integer

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

Property Value

Type: System.Int32
Returns Int32.

See Also

Reference

OpenXmlPartReader Class

OpenXmlPartReader Members

DocumentFormat.OpenXml Namespace