Layout Features Tutorial
This demo shows basic configuration options for the
is changed to left-to-right to get a horizontal tree layout.
is specified as placer for the tree nodes, its distance settings are configured to get a
rather wide spacing between elements.
is configured such that the edges are distributed at the node border and the segments
are forced to keep some distance in this example (via
). By default, the tree layout groups the edge segments and places the ports in the node
Edges from the parent to the child nodes are ordered with respect to the label text of
the child nodes by defining an appropriate
You can copy the code snippet to configure the layout from
The Developer's Guide provides more in-depth information about the
provided by yFiles.