GetContentSibling() public static method

Return the next content-typed sibling of the specified node. If the node has no siblings, or if the node is not content-typed, then do not set pageNode or idxNode and return false.
public static GetContentSibling ( XPathNode &pageNode, int &idxNode ) : bool
pageNode XPathNode
idxNode int
return bool
Example #1
0
 /// <summary>
 /// If the current node is an attribute or namespace (not content), return false.  Otherwise,
 /// move to the next content node.  Return false if there are no more content nodes.
 /// </summary>
 public override bool MoveToNext()
 {
     return(XPathNodeHelper.GetContentSibling(ref this.pageCurrent, ref this.idxCurrent));
 }
 /// <summary>
 /// Move to the first content sibling of the current node with the specified type.  Return false
 /// if the current node has no matching siblings.
 /// </summary>
 public override bool MoveToNext(XPathNodeType type)
 {
     return(XPathNodeHelper.GetContentSibling(ref _pageCurrent, ref _idxCurrent, type));
 }
Example #3
0
 /// <summary>
 /// If the current node is an attribute or namespace (not content), return false.  Otherwise,
 /// move to the next content node.  Return false if there are no more content nodes.
 /// </summary>
 public override bool MoveToNext()
 {
     return XPathNodeHelper.GetContentSibling(ref _pageCurrent, ref _idxCurrent);
 }