XPathNodeIterator.CurrentPosition Property

 

When overridden in a derived class, gets the index of the current position in the selected set of nodes.

Namespace:   System.Xml.XPath
Assembly:  System.Xml (in System.Xml.dll)

public abstract int CurrentPosition { get; }

Property Value

Type: System.Int32

The index of the current position.

The index is 1-based. Therefore, the first node has an index of 1. An index of 0 indicates there are no selected nodes. This property always returns a positive integer.

.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Return to top
Show: