Smrf.NodeXL.Visualization.Wpf.NodeXLControl.SnapVerticesToGrid C# (CSharp) Method

SnapVerticesToGrid() public method

public SnapVerticesToGrid ( Int32 gridSize ) : void
gridSize System.Int32
return void
    SnapVerticesToGrid
    (
        Int32 gridSize
    )
    {
        AssertValid();

        const String MethodName = "SnapVerticesToGrid";

        this.ArgumentChecker.CheckArgumentPositive(MethodName, "gridSize",
            gridSize);

        CheckIfLayingOutGraph(MethodName);

        VertexGridSnapper.SnapVerticesToGrid(this.Graph, gridSize);
        BundleAllEdgesIfAppropriate();
    }
NodeXLControl