Nevron .NET Vision
Nevron.Diagram Namespace / NShape Class / GetPlugDirectionForPort Method
foreign port
own plug


In This Topic
    GetPlugDirectionForPort Method
    In This Topic
    Called by own plugs to provide a plug direction for the specified foreign port
    Syntax
    'Declaration
     
    
    Public Overridable Function GetPlugDirectionForPort( _
       ByVal foreignPort As NPort, _
       ByVal ownPlug As NPlug _
    ) As NPointF
    'Usage
     
    
    Dim instance As NShape
    Dim foreignPort As NPort
    Dim ownPlug As NPlug
    Dim value As NPointF
     
    value = instance.GetPlugDirectionForPort(foreignPort, ownPlug)
    public virtual NPointF GetPlugDirectionForPort( 
       NPort foreignPort,
       NPlug ownPlug
    )

    Parameters

    foreignPort
    foreign port
    ownPlug
    own plug

    Return Value

    direction of the plug for the specified port
    Remarks
    This implementation will return the shape center
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also