GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLink Class / Orthogonal Property
In This Topic
    Orthogonal Property (GoLink)
    In This Topic
    Gets or sets whether the segments of the link are always horizontal or vertical.
    Syntax
    [Category("Appearance")]
    [DefaultValue(false)]
    [Description("Whether the segments of the link are always horizontal and vertical.")]
    public virtual bool Orthogonal {get; set;}
    Remarks
    This property primarily controls the behavior of CalculateStroke, to position the points of the stroke so that straight line segments will be horizontal or vertical. You can have a link drawn with only horizontal and vertical segments if the link's stroke style is GoStrokeStyle.Line or GoStrokeStyle.RoundedLine. If the stroke style is GoStrokeStyle.Bezier, some of the orthogonally positioned points act as control points to help form the curve. The orthogonal CalculateStroke algorithm adds two segments to the normal three segments so that it is possible to connect two ports using only orthogonal lines. Changing this value will call PortsOnLinkChanged to notify both ports that this property changed. Setting this property to true will clear any existing points and then call UpdateRoute, which will eventually call CalculateStroke.
    See Also