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

ForceLayoutSelectedWithinBounds() protected method

protected ForceLayoutSelectedWithinBounds ( ) : void
return void
    ForceLayoutSelectedWithinBounds()
    {
        AssertValid();

        // The combination of the LayOutTheseVerticesWithinBounds key added to
        // the graph by this method and the LayOutTheseVerticesOnly key added
        // later cause the selected vertices to be laid out within their
        // bounding box.
        //
        // When the graph layout completes (which happens asynchronously),
        // oNodeXLControl_GraphLaidOut() removes both keys.

        oNodeXLControl.Graph.SetValue(
            ReservedMetadataKeys.LayOutTheseVerticesWithinBounds, null);

        ForceLayoutSelected();
    }
TaskPane