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.XPath (in System.Xml.XPath.dll)

public abstract int CurrentPosition { get; }

Property Value

Type: System.Int32
The int 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.


Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.