Nevron .NET Vision
Nevron.Diagram.Layout Namespace / NShapeBodyAdapter Class / GetPortFromPlugAnchor Method


In This Topic
    GetPortFromPlugAnchor Method
    In This Topic
    Gets a port of the specified shape, which matches the proposed by the layout plug anchor. This implementation tries to find a named port (e.g. port with Center, Left, Top, Right or Bottom name).
    Syntax
    'Declaration
     
    
    Protected Overridable Function GetPortFromPlugAnchor( _
       ByVal shape As NShape, _
       ByVal anchor As PlugAnchor _
    ) As NPort
    'Usage
     
    
    Dim instance As NShapeBodyAdapter
    Dim shape As NShape
    Dim anchor As PlugAnchor
    Dim value As NPort
     
    value = instance.GetPortFromPlugAnchor(shape, anchor)
    protected virtual NPort GetPortFromPlugAnchor( 
       NShape shape,
       PlugAnchor anchor
    )

    Parameters

    shape
    anchor
    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