Smrf.NodeXL.ExcelTemplate.TaskPane.msiSnapVerticesToGrid_Click C# (CSharp) Method

msiSnapVerticesToGrid_Click() protected method

protected msiSnapVerticesToGrid_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
    msiSnapVerticesToGrid_Click
    (
        object sender,
        EventArgs e
    )
    {
        AssertValid();

        if (oNodeXLControl.IsLayingOutGraph)
        {
            return;
        }

        this.UseWaitCursor = true;

        oNodeXLControl.SnapVerticesToGrid(
            ( new VertexGridSnapperUserSettings() ).GridSize );

        oNodeXLControl.DrawGraph(false);

        this.UseWaitCursor = false;
    }
TaskPane