GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLink Class / AddSelectionHandles Method
In This Topic
    AddSelectionHandles Method (GoLink)
    In This Topic
    Unlike a normal GoStroke the end handles are in the shape of diamonds if Relinkable is true.
    Syntax
    public override void AddSelectionHandles( 
       GoSelection sel,
       GoObject selectedObj
    )

    Parameters

    sel
    selectedObj
    Remarks

    The first and last resize handles depend on whether this link is Relinkable. If it is, the handles have a GoHandleStyle.Diamond style with a HandleID that is either RelinkableFromHandle or RelinkableToHandle. If it is not, the handles are hollow and have a handle ID of GoObject.NoHandle, and the user cannot drag them.

    The second and next-to-last resize handles, if they exist apart from first and last resize handles and if this link is Orthogonal, will have special HandleIDs to constrain the movement of those handles in order to maintain orthogonality. These special handles are GoObject.MiddleTop, GoObject.MiddleRight, GoObject.MiddleBottom, and GoObject.MiddleLeft.

    The HandleID for the rest of the resize handles, if they exist in the middle parts of the link, is just the corresponding point index plus GoObject.LastHandle. These allow for unconstrained movement while resizing, even if the link is Orthogonal.

    Furthermore, if Orthogonal and DraggableOrthogonalSegments are both true, this adds additional hidden handles (Style is GoHandleStyle.None) along the middle segments to allow those segments to be dragged in a direction perpendicular to the segment. These handles have a HandleID equal to the index of the point beginning the segment plus GoObject.LastHandle plus 1000000.

    See Also