Provides event information for the TaskPane.VerticesMoved and ThisWorkbook.VerticesMoved events.
Inheritance: GraphRectangleEventArgs
Beispiel #1
0
        ThisWorkbook_VerticesMoved
        (
            Object sender,
            VerticesMovedEventArgs2 e
        )
        {
            Debug.Assert(e != null);
            AssertValid();

            if (m_oSheets1And2Helper.TableExists)
            {
                // Note that the lockedColumnName argument is null, even though
                // the vertex table has a locked column.  This causes the locked
                // column to be ignored, which is the correct behavior when
                // vertices are manually moved in the graph pane.

                m_oSheets1And2Helper.SetLocations <VertexAndRowID>(
                    e.VerticesAndRowIDs, e.GraphRectangle,
                    VertexTableColumnNames.X,
                    VertexTableColumnNames.Y,
                    null,

                    new TryGetRowIDAndLocation <VertexAndRowID>(
                        this.TryGetRowIDAndLocation)
                    );
            }
        }
Beispiel #2
0
        ThisWorkbook_VerticesMoved
        (
            Object sender,
            VerticesMovedEventArgs2 e
        )
        {
            Debug.Assert(e != null);
            AssertValid();

            SetLocationsOfCollapsedGroups(e);
        }
Beispiel #3
0
    ThisWorkbook_VerticesMoved
    (
        Object sender,
        VerticesMovedEventArgs2 e
    )
    {
        Debug.Assert(e != null);
        AssertValid();

        if (m_oSheets1And2Helper.TableExists)
        {
            // Note that the lockedColumnName argument is null, even though
            // the vertex table has a locked column.  This causes the locked
            // column to be ignored, which is the correct behavior when
            // vertices are manually moved in the graph pane.

            m_oSheets1And2Helper.SetLocations<VertexAndRowID>(
                e.VerticesAndRowIDs, e.GraphRectangle,
                VertexTableColumnNames.X,
                VertexTableColumnNames.Y,
                null,

                new TryGetRowIDAndLocation<VertexAndRowID>(
                    this.TryGetRowIDAndLocation)
                );
        }
    }
Beispiel #4
0
    ThisWorkbook_VerticesMoved
    (
        Object sender,
        VerticesMovedEventArgs2 e
    )
    {
        Debug.Assert(e != null);
        AssertValid();

        SetLocationsOfCollapsedGroups(e);
    }