RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNodeList.FindSibling Method

Returns a node that appears a specified amount before or after another node.

Pascal
function FindSibling(const Node: IXMLNode; Delta: Integer): IXMLNode;
C++
__fastcall IXMLNode FindSibling(const IXMLNode Node, int Delta);

Call FindSibling to access the node whose position has a specified relationship to another node.  

Node is a node in the list to use as a reference point. 

Delta indicates where the desired node appears, relative to Node. If Delta is positive, FindSibling returns the node that appears Delta positions after Node. If Delta is negative, FindSibling returns a node that appears before Node. 

FindSibling returns the node that appears at the position offset by Delta, relative to the position of Node. If Delta specifies a position before the first node or after the last node in the list, FindSibling returns nil (Delphi) or NULL (C++). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!