Class NodeIterator
Iterates over all nodes in the range.
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApi
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
[CLSCompliant(false)]
public class NodeIterator : ContentNodeIterator
Constructors
NodeIterator(IAbstractContainerNode)
Limit iteration to the specified container, start at the first node in the container.
Declaration
public NodeIterator(IAbstractContainerNode container)
Parameters
Type | Name | Description |
---|---|---|
IAbstractContainerNode | container | The bounding container |
NodeIterator(IAbstractContainerNode, IAbstractNode)
Limit iteration to the specified container, start at a specified node (which should be in the container, but can be a sub-node).
Declaration
public NodeIterator(IAbstractContainerNode container, IAbstractNode from)
Parameters
Type | Name | Description |
---|---|---|
IAbstractContainerNode | container | The bounding container |
IAbstractNode | from | The first node to start from. This is typically a node somewhere inside the container. |
NodeIterator(IAbstractNode)
Start at the specified node. Iterate until the end of all available content, including parent nodes.
Declaration
public NodeIterator(IAbstractNode from)
Parameters
Type | Name | Description |
---|---|---|
IAbstractNode | from | the position to start from, may or may not be a content node |
NodeIterator(IAbstractNode, IAbstractContentNode)
Limit iteration to a specific end node. The iteration will stop at the upto node, which will not be returned as a content node.
Declaration
public NodeIterator(IAbstractNode from, IAbstractContentNode upto)
Parameters
Type | Name | Description |
---|---|---|
IAbstractNode | from | The first node to start from. May or may not be a container. |
IAbstractContentNode | upto | The node at which to stop. Will not be part of the content iterated over, and must be after the from node to be effective. |
Properties
CurrentAbstractNode
The current node we are iterating over
Declaration
protected override IAbstractNode CurrentAbstractNode { get; }
Property Value
Type | Description |
---|---|
IAbstractNode |