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

OnMouseDownLeftVertexNotClicked() protected method

protected OnMouseDownLeftVertexNotClicked ( Point oMouseLocation ) : void
oMouseLocation Point
return void
    OnMouseDownLeftVertexNotClicked
    (
        Point oMouseLocation
    )
    {
        AssertValid();

        m_oDoubleClickedVertexInfo = null;

        // When a control key is pressed, the selected state of the marqueed
        // vertices should be inverted.

        if ( m_eMouseMode == MouseMode.Select && !ControlKeyIsPressed() )
        {
            DeselectAll();
        }

        if (this.Graph.Vertices.Count > 0)
        {
            // The user might want to drag a marquee.  Save the mouse location
            // for use within the MouseMove event.

            m_oMarqueeBeingDragged = new DraggedMarquee(oMouseLocation,
                this.GraphRectangle, m_oLayout.Margin);

            this.Cursor = GetCursorForMarqueeDrag();
            Mouse.Capture(this);
        }
    }
NodeXLControl