Vixen
02b45cc4
csharp
public sealed class GraphPort

One socket on the side of a node.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ A port knows where it is without being laid out. AnchorOf works the position out from the node's rectangle and the port's index rather than from a port element's box, and that is load-bearing: the node at the far end of a wire is very often scrolled off the canvas and has no elements at all. A wire whose endpoint came from layout would be drawn to the origin whenever the thing it connects to was out of sight.

Fields and properties (7)

  • public GraphNode Node

    The node it belongs to.

  • public string Name

    What it is called.

  • public PortDirection Direction

    Which side it is on.

  • public int Index

    Where it comes among the ports on its own side.

  • public bool AllowsMany

    Whether more than one wire may end here.

  • public PortEditor? Editor

    What an author types into it when nothing is wired to it, or null for nothing.

  • public object? Tag

    Whatever the application wants to hang off it.

Methods (1)

  • public override string ToString()

    Returns a string that represents the current object.

Used by (15)

  • GraphNodeVixen.Ui.Controls.Advanced
  • GraphWireVixen.Ui.Controls.Advanced
  • NodeCanvasVixen.Ui.Controls.Advanced
  • NodeCanvasTestsVixen.Ui.Controls.Advanced.Tests
  • NodeGraphVixen.Ui.Controls.Advanced
  • NodeGraphTestsVixen.Ui.Controls.Advanced.Tests
  • NodeItemVixen.Ui.Controls.Advanced
  • NodePortEditorVixen.Ui.Controls.Advanced
  • NodePortViewVixen.Ui.Controls.Advanced
  • NodeWireLayerVixen.Ui.Controls.Advanced
  • GraphPairVixen.Editor.NodeGraph.Tests
  • NodeGraphViewVixen.Editor.NodeGraph
  • PortValueTestsVixen.Editor.NodeGraph.Tests
  • ViewFixtureVixen.Editor.NodeGraph.Tests
  • ViewTestsVixen.Editor.NodeGraph.Tests