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

RemoveVertexDuringGroupCollapseOrExpand() protected method

protected RemoveVertexDuringGroupCollapseOrExpand ( IVertex oVertex, System.Boolean bUndrawVertex ) : void
oVertex IVertex
bUndrawVertex System.Boolean
return void
    RemoveVertexDuringGroupCollapseOrExpand
    (
        IVertex oVertex,
        Boolean bUndrawVertex
    )
    {
        Debug.Assert(oVertex != null);
        AssertValid();

        if (bUndrawVertex && m_oLastGraphDrawingContext != null)
        {
            m_oGraphDrawer.UndrawVertex(oVertex, m_oLastGraphDrawingContext);
        }

        m_oGraph.Vertices.Remove(oVertex);
        m_oSelectedVertices.Remove(oVertex);
    }
NodeXLControl