XPathNodeIterator.CurrentPosition 属性

定义

当在派生的类中重写时,获取所选节点集中当前位置的索引。When overridden in a derived class, gets the index of the current position in the selected set of nodes.

public:
 abstract property int CurrentPosition { int get(); };
public abstract int CurrentPosition { get; }
member this.CurrentPosition : int
Public MustOverride ReadOnly Property CurrentPosition As Integer

属性值

当前位置的索引。The index of the current position.

注解

索引从 1 开始。The index is 1-based. 因此,第一个节点的索引为1。Therefore, the first node has an index of 1. 索引0指示没有选定的节点。An index of 0 indicates there are no selected nodes. 此属性始终返回一个正整数。This property always returns a positive integer.

适用于