GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / LinksRedirectedToSubGraphPort Property
In This Topic
    LinksRedirectedToSubGraphPort Property
    In This Topic
    Gets or sets whether links connected to ports that are inside collapsed GoSubGraphs appear to be connected to the subgraph's GoSubGraph.Port.
    Syntax
    public static bool LinksRedirectedToSubGraphPort {get; set;}

    Property Value

    This value is initially false, providing compatibility with older versions of GoDiagram.
    Remarks

    This property affects the following methods: GetFromLinkDir, GetToLinkDir, GetFromLinkPoint, GetToLinkPoint, and GetLinkPointFromPoint.

    When this static/shared property is true, any link inside a collapsed GoSubGraph will appear to be redirected to the first visible collapsed parent subgraph, if that subgraph has a GoSubGraph.Port. Note that no structural changes are made to any ports or to any links -- only the point and direction at which links connect, so that they will now appear to be connected to the subgraph port. Also please note that by default GoSubGraph.CreatePort returns null/nothing, so a subgraph will not have a port unless you either override that method to return a new port or you assign the GoSubGraph.Port property.

    See Also