Skip to content

Hidden

Set Hidden on a node or an edge to take it off the canvas while it stays in your lists. Hiding a node also hides every edge attached to it, so folding part of a graph away needs only the nodes named; fitting the view leaves hidden nodes out unless IncludeHiddenNodes asks for them.

Node 1
Node 2
Node 3
Node 4
Arrow keys move the view, Home shows the whole flow.
bit Blow

Try it

  • Tick hide the middle row: nodes 2 and 3 disappear and take all four edges with them, since every edge touches one of them. Untick it and everything comes back as it was.
  • Tick hide edge 3 → 4 on its own: just that edge goes, with both of its nodes still on screen.
  • With the row hidden, press Fit visible nodes: the view closes in on nodes 1 and 4 alone. Press Fit with hidden nodes: it widens again to leave room for nodes 2 and 3. The control bar's fit button fits the visible nodes.
  • While the row is hidden, click the background and press Ctrl+A: only nodes 1 and 4 are selected. The minimap leaves the hidden nodes out too.

How it works

  • BlowNode.Hidden = true keeps the node in Nodes, where your code still sees it, but leaves it out of rendering, selection, box selection, select-all, connecting, fit-view, alignment guides, the minimap and keyboard nudges.
  • An edge with a hidden end is not drawn: there is nothing left for it to be a line between. So the checkbox names only the two nodes, and does no bookkeeping over Edges.
  • BlowEdge.Hidden hides a single edge and leaves its nodes alone.
  • FitViewAsync with a BlowFitViewOptions skips hidden nodes unless IncludeHiddenNodes is true; Duration eases the view there.
  • The layout helpers still place hidden nodes (LayoutAsync skips them). A node with children can be collapsed with SetCollapsedAsync instead, which keeps the edges to the outside: see the Layouts and Collapsing example.
An unhandled error has occurred. Reload 🗙