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

InvertSelection() public method

public InvertSelection ( ) : void
return void
    InvertSelection()
    {
        AssertValid();

        const String MethodName = "InvertSelection";

        CheckIfLayingOutGraph(MethodName);

        foreach (IVertex oVertex in m_oGraph.Vertices)
        {
            SetVertexSelectedInternal( oVertex,
                !VertexOrEdgeIsSelected(oVertex) );
        }

        foreach (IEdge oEdge in m_oGraph.Edges)
        {
            SetEdgeSelectedInternal( oEdge, !VertexOrEdgeIsSelected(oEdge) );
        }

        FireSelectionChanged();
    }
NodeXLControl