Namespace: yWorks.yFiles.UI.Model
Assembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Assembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public interface IPort : IModelItem, ILookup, ITagOwner |
| Visual Basic |
|---|
Public Interface IPort _ Inherits IModelItem, ILookup, ITagOwner |
Remarks
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.