private void axPageLayoutControl1_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e) { if (m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSize && this.axPageLayoutControl1.CurrentTool == null) { m_designPageLayout.fMoveElement(e.pageX, e.pageY); //移动元素 } if (m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNESW || m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNS || m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNWSE || m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeWE) //resize元素 { IPoint m_point = m_pageLayoutControl.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(e.x, e.y); if (m_resizeEnvelopeFeedback != null) { m_resizeEnvelopeFeedback.MoveTo(m_point); //移动终点 } } }