The interface used in an IGraph implementation for IEdges to connect to.

Namespace: yWorks.yFiles.UI.Model
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version:


public interface IPort : IModelItem, ILookup, ITagOwner
Visual Basic
Public Interface IPort _ Inherits IModelItem, ILookup, ITagOwner


This interface provides read-only access to the properties of a port. In order to modify the state of an instance use the various methods provided by the IGraph this instance belongs to. Ports are owned by IPortOwners, normally an INode, but this can also be an IEdge in special graph implementations. To obtain the IEdge instances that are connected to a certain port instance, applications need to use the EdgesAt(IPort, AdjacencyTypes) method provided by IGraph or the corresponding convenience extension methods in GraphExtensions. Zero or more edges may be connected to a port, depending on the implementation of the graph. Like all items in an IGraph, this item supports the Lookup(Type) method that can be used to query additional aspects of the item.

Related Reading in the Developer's Guide

The graph model with all relevant types and their relationships is presented in detail in the section Graph Structure.

Using the look-up mechanism is explained in the section Look-up Mechanism.

Related Demo Applications

See the yFiles for Silverlight tutorials for step by step introductions.

See Also