Interleaved mode specifier constant.

Namespace: yWorks.yFiles.Layout.Tree
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version:


public enum InterleavedMode
Visual Basic
Public Enumeration InterleavedMode


Member nameValueDescription
Off0 Interleaved mode specifier constant. This mode does turn off the interleaved child arrangement for all nodes in the tree. This is the default mode.
AllNodes1 Interleaved mode specifier constant. Using this mode, the children (successors) of all nodes in the tree will possibly be placed in an interleaved fashion. Interleaved arrangement means, that the successors of node root are placed at different distances in an alternating way. Note: If there is enough space within the desired child wedge of some node to place all children without using different distances, than the children will simply be placed without interleaving.
SelectedNodes2 Interleaved mode specifier constant. Using this mode, it is possible to specify individually for each node if the nodes children should be arranged in an interleaved way or not. For this purpose a IDataProvider with key InterleavedNodesDpKey can be attached to the graph to be laid out. The data provider may then provide a boolean value which determines, if the children of a specific node will be placed interleaved or not.

If there is no IDataProvider with key InterleavedNodesDpKey registered, then the selection of nodes where children shall arranged interleaved will be made based on a very simple heuristic.

See Also