Nevron Open Vision Documentation
Nevron.Nov.Diagram.Layout Namespace / NForceDirectedGraphLayout Class / OnArrangingGraph Method


In This Topic
    OnArrangingGraph Method (NForceDirectedGraphLayout)
    In This Topic
    Called before the layout of the specified graph
    Syntax
    'Declaration
     
    
    Protected Overrides Function OnArrangingGraph( _
       ByVal graph As NGraph, _
       ByVal context As NLayoutContext _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NForceDirectedGraphLayout
    Dim graph As NGraph
    Dim context As NLayoutContext
    Dim value As System.Boolean
     
    value = instance.OnArrangingGraph(graph, context)
    protected override System.bool OnArrangingGraph( 
       NGraph graph,
       NLayoutContext context
    )

    Parameters

    graph
    context

    Return Value

    true if the layout can be performed, otherwise false
    Remarks
    Overriden to read the X and Y moveable constrains of the vertices and to call the OnLayingOutGraph method of all enabled forces.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also