Class McdNodeIteratorHelper
Inheritance
McdNodeIteratorHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class McdNodeIteratorHelper
Methods
AsEnumerable(ComWrapper<ICamApiMcdNodeIterator>)
Enumerate all nodes in the MCD tree in depth-first order.
Declaration
public static IEnumerable<ComWrapper<ICamApiMcdNode>> AsEnumerable(this ComWrapper<ICamApiMcdNodeIterator> it)
Parameters
Returns
Current(ComWrapper<ICamApiMcdNodeIterator>)
Get the node the iterator currently points at.
Declaration
public static ComWrapper<ICamApiMcdNode> Current(this ComWrapper<ICamApiMcdNodeIterator> iteratorCom)
Parameters
Returns
MoveToChild(ComWrapper<ICamApiMcdNodeIterator>)
Move to the first child of the current node.
Declaration
public static bool MoveToChild(this ComWrapper<ICamApiMcdNodeIterator> iteratorCom)
Parameters
Returns
MoveToParent(ComWrapper<ICamApiMcdNodeIterator>)
Move to the parent of the current node.
Declaration
public static bool MoveToParent(this ComWrapper<ICamApiMcdNodeIterator> iteratorCom)
Parameters
Returns
MoveToSibling(ComWrapper<ICamApiMcdNodeIterator>)
Move to the next sibling of the current node.
Declaration
public static bool MoveToSibling(this ComWrapper<ICamApiMcdNodeIterator> iteratorCom)
Parameters
Returns
Reset(ComWrapper<ICamApiMcdNodeIterator>)
Reset the iterator back to the root of the tree.
Declaration
public static void Reset(this ComWrapper<ICamApiMcdNodeIterator> iteratorCom)
Parameters